code: def _check_asset_node_def(node_def):
      """Raises TypeError if `node_def` does not match the expectations."""
      if node_def.op != "Const":
          raise TypeError("Asset node must be of type constant.")
      if tf.as_dtype(node_def.attr["dtype"].type) != tf.string:
          raise TypeError("Asset node must be of dtype string.")
      if len(node_def.attr["value"].tensor.string_val) != 1:
          raise TypeError("Asset node must be a scalar.")
  
imports: import collections
  import os
  import re
  from absl import logging
  import tensorflow
  from tensorflow_hub import module_attachment_pb2
  from tensorflow_hub import tf_utils
  from google.protobuf import message
  from tensorflow.core.protobuf import meta_graph_pb2
  from tensorflow.core.protobuf import saved_model_pb2
label_desc: Use image node_id 13 for calling a global function with example usage: _check_asset_node_def(node_def) without return types