code: def _create_state_submodule(name):
      """Creates a class imitating a submodule. It can contain methods and nested submodules.
      Used for submodules of rng_state, e.g. `rng_state.random`, `rng_state.noise`.
      """
  
      class StateSubmodule(_create_module_class()):
          def __init__(self, operator_cache, seed_generator):
              self._operator_cache = operator_cache
              self._seed_generator = seed_generator
  
              for (
                  name,
                  submodule_class,
              ) in StateSubmodule._submodules.items():
                  # Adds nested submodules.
                  setattr(
                      self,
                      name,
                      submodule_class(
                          self._operator_cache, self._seed_generator
                      ),
                  )
  
          __name__ = name
  
      return StateSubmodule
  
imports: import sys
  from nvidia.dali import backend
  from nvidia.dali import internal
  from nvidia.dali import ops
  from nvidia.dali import tensors
  from nvidia.dali import types
  from nvidia.dali.external_source import _prep_data_for_feed_input
label_desc: Use image node_id 34 for calling a global function with example usage: _create_state_submodule(name) and returns: StateSubmodule