code: def _assert_other_arg_none(arg_name, arg):
      if arg is not None:
          raise ValueError(
              "When `type_spec` is not None, all other args "
              "except `name` must be None, "
              "but %s is not None." % arg_name
          )
  
file_path: tensorflow-upstream/tensorflow/python/keras/engine/input_layer.py
imports: from tensorflow.python.distribute import distribute_lib
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_shape
  from tensorflow.python.framework import tensor_spec
  from tensorflow.python.keras import backend
  from tensorflow.python.keras.distribute import distributed_training_utils
  from tensorflow.python.keras.engine import base_layer
  from tensorflow.python.keras.engine import keras_tensor
  from tensorflow.python.keras.engine import node
  from tensorflow.python.keras.saving.saved_model import layer_serialization
  from tensorflow.python.keras.utils import tf_utils
label_desc: Use image node_id 1 for calling a global function with example usage: _assert_other_arg_none(arg_name, arg) without return types