(a) Screening.—The court shall review, before docketing, if feasible or, in any event, as soon as practicable after docketing, a complaint in a civil action in which a prisoner seeks redress from a governmental entity or officer or employee of a governmental entity.
(b) Grounds for Dismissal.—On review, the court shall identify cognizable claims or dismiss the complaint, or any portion of the complaint, if the complaint—
(1) is frivolous, malicious, or fails to state a claim upon which relief may be granted; or
(2) seeks monetary relief from a defendant who is immune from such relief.
(c) Definition.—As used in this section, the term "prisoner" means any person incarcerated or detained in any facility who is accused of, convicted of, sentenced for, or adjudicated delinquent for, violations of criminal law or the terms and conditions of parole, probation, pretrial release, or diversionary program.