def checkout_commit(repo_path: str,<EOL>commit: Any = None) -> None:  
commit = commit or '<STR_LIT>'<EOL>run_command(cmd='<STR_LIT>'.format(commit), data=None, location=repo_path, chw=True)<EOL>
Checkout to a specific commit.

    If commit is None then checkout to master.