code: def enforce_clean_option(args, run):
      """Fail if any version control repository is dirty."""
      repos = run.experiment_info["repositories"]
      if not repos:
          raise RuntimeError(
              "No version control detected. "
              "Cannot enforce clean repository.\n"
              "Make sure that your sources under VCS and the "
              "corresponding python package is installed."
          )
      else:
          for repo in repos:
              if repo["dirty"]:
                  raise RuntimeError(
                      "EnforceClean: Uncommited changes in "
                      'the "{}" repository.'.format(repo)
                  )
  
imports: from typing import Callable
  import inspect
  import re
  from sacred.run import Run
  from sacred.commands import print_config
  from sacred.utils import convert_camel_case_to_snake_case
label_desc: Use image node_id 13 for calling a global function with example usage: enforce_clean_option(args, run) without return types