code: def _cycle_enabled(cycle):
      if cycle is None:
          return False
      if cycle is False or cycle == "no":
          return False
      if cycle is True or cycle == "quiet" or cycle == "raise":
          return True
      raise ValueError(
          """Invalid value {} for the argument `cycle`. Valid values are
    - "no", False or None - cycling disabled
    - "quiet", True - quietly rewind the data
    - "raise" - raise StopIteration on each rewind.""".format(
              repr(cycle)
          )
      )
  
imports: from enum import Enum
  from nvidia.dali import types
  from nvidia.dali import tensors
  import inspect
  import functools
label_desc: Use image node_id 7 for calling a global function with example usage: _cycle_enabled(cycle) and returns: False, False, True