<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def checkout_commit(repo_path: str, commit: Any = None) -> None: # pylint:disable=redefined-outer-name """Checkout to a specific commit. If commit is None then checkout to master. """

    commit = commit or 'master'
    run_command(cmd='git checkout {}'.format(commit), data=None, location=repo_path, chw=True)