code: def conditionals_enabled():
      """Check (within a Pipeline context) if the conditionals are enabled."""
      from nvidia.dali._debug_mode import _PipelineDebug
  
      current_pipeline = _PipelineDebug.current()
      enabled = getattr(
          current_pipeline, "_conditionals_enabled", False
      )
      return enabled
  
imports: from nvidia.dali import _autograph
  from nvidia.dali.data_node import DataNode
  from nvidia.dali import fn
  from nvidia.dali._autograph.utils import ag_logging
  from nvidia.dali._autograph.operators import variables
  from contextlib import contextmanager
  from enum import Enum
  import tree
label_desc: Use image node_id 6 for calling a global function with example usage: conditionals_enabled() and returns: enabled