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."
          )
  
file_path: stellargraph/stellargraph/layer/attri2vec.py
imports: from tensorflow.keras import Input
  from tensorflow.keras import backend
  from tensorflow.keras.layers import Dense, Lambda, Reshape, Embedding
  import warnings
  from .misc import deprecated_model_function
  from ..mapper import Attri2VecLinkGenerator, Attri2VecNodeGenerator
label_desc: Use image node_id 1 for calling a global function with example usage: _require_without_generator(value, name) and returns: value