<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def finish_review(self, success=True, error=False):
 """Mark our review as finished."""

        if self.set_status:
            if error:
                self.github_repo.create_status(
                    state="error",
                    description="Static analysis error! inline-plz failed to run.",
                    context="inline-plz",
                    sha=self.last_sha,
                )
            elif success:
                self.github_repo.create_status(
                    state="success",
                    description="Static analysis complete! No errors found in your PR.",
                    context="inline-plz",
                    sha=self.last_sha,
                )
            else:
                self.github_repo.create_status(
                    state="failure",
                    description="Static analysis complete! Found errors in your PR.",
                    context="inline-plz",
                    sha=self.last_sha,
                )