(manager, condition)
return _OptionalContextManager(manager, condition)
Wraps the provided context manager and runs it if condition is True.

  Args:
    manager: A context manager to conditionally run.
    condition: If true, runs the given context manager.
  Returns:
    A context manager that conditionally executes the given manager.
Wraps the provided context manager and runs it if condition is True.
Wraps the provided context manager and runs it if condition is True .
def Optional(manager, condition):
  """Wraps the provided context manager and runs it if condition is True.

  Args:
    manager: A context manager to conditionally run.
    condition: If true, runs the given context manager.
  Returns:
    A context manager that conditionally executes the given manager.
  """
  return _OptionalContextManager(manager, condition)
def Optional ( manager , condition ) : return _OptionalContextManager ( manager , condition )