parameters: (value)
docstring: Wraps basic data structures, unwraps NoDependency objects.
docstring_summary: Wraps basic data structures, unwraps NoDependency objects.
docstring_tokens: Wraps basic data structures unwraps NoDependency objects .
function: def _wrap_or_unwrap(value):
    """Wraps basic data structures, unwraps NoDependency objects."""
    # pylint: disable=unidiomatic-typecheck
    # Exact type checking to avoid mucking up custom logic in list/dict
    # subclasses, e.g. collections.Counter.
    if isinstance(value, NoDependency):
      return value.value
    if isinstance(value, base.Trackable):
      return value  # Skip conversion for already trackable objects.
    elif type(value) == dict:
      return _DictWrapper(value)
    elif type(value) == collections.OrderedDict:
      return _DictWrapper(value)
    elif type(value) == list:
      return ListWrapper(value)
    else:
      return value
function_tokens: def _wrap_or_unwrap ( value ) : # pylint: disable=unidiomatic-typecheck # Exact type checking to avoid mucking up custom logic in list/dict # subclasses, e.g. collections.Counter. if isinstance ( value , NoDependency ) : return value . value if isinstance ( value , base . Trackable ) : return value # Skip conversion for already trackable objects. elif type ( value ) == dict : return _DictWrapper ( value ) elif type ( value ) == collections . OrderedDict : return _DictWrapper ( value ) elif type ( value ) == list : return ListWrapper ( value ) else : return value