code: def _require_without_generator(value, name):
      if value is not None:
          return value
      else:
          raise ValueError(
              f"{name}: expected a value for 'input_dim', 'node_num' and 'multiplicity' when "
              f"'generator' is not provided, found {name}=None."
          )
  
imports: import warnings
  import tensorflow
  from tensorflow.keras import backend
  from tensorflow.keras import activations, constraints, initializers, regularizers
  from tensorflow.keras.layers import Input, Layer, Dropout, LeakyReLU, Lambda, Reshape
  from ..mapper import FullBatchNodeGenerator, FullBatchGenerator, ClusterNodeGenerator
  from .misc import SqueezedSparseConversion, deprecated_model_function, GatherIndices
label_desc: Use image node_id 1 for calling a global function with example usage: _require_without_generator(value, name) and returns: value