original_docstring: Assert if an environment is registered.
docstring: Assert if an environment is registered.
docstring_tokens: Assert if an environment is registered .
code: def assert_exists(env_name: str):
    """Assert if an environment is registered."""
    exists_ = exists(env_name)
    if not exists_:
      closest = difflib.get_close_matches(env_name, list_env(), n=3)
      assert 0, f'{env_name} not found. Closest={closest}'
code_tokens: def assert_exists ( env_name : str ) : exists_ = exists ( env_name ) if not exists_ : closest = difflib . get_close_matches ( env_name , list_env ( ) , n = 3 ) assert 0 , f'{env_name} not found. Closest={closest}'
short_docstring: Assert if an environment is registered.
short_docstring_tokens: Assert if an environment is registered .
comment: """Assert if an environment is registered."""