code: def verify_name(name: str, graphdef: tf.compat.v1.GraphDef) -> bool:
      """Verify the name is in graph
  
      Arguments:
          name {str} -- node name
          graphdef {tf.compat.v1.GraphDef} -- TF Graph definition
  
      Returns:
          bool -- Whether node name is in graph
      """
      for n in graphdef.node:
          if name == n.name:
              return True
      return False
  
imports: from google.protobuf import text_format
  import tensorflow
  from typing import List
label_desc: Use image node_id 2 for calling a global function with example usage: verify_name(name, graphdef) and returns: False, True