code: def write_graph():
      """Demonstrate basic graph writing."""
      logdir = os.path.join(LOGDIR, "write_graph")
  
      @tf.function
      def f():
          x = tf.constant(2)
          y = tf.constant(3)
          return x**y
  
      with tf.summary.create_file_writer(logdir).as_default():
          if hasattr(tf.summary, "graph"):
              # Emit a simple graph.
              tf.summary.graph(f.get_concrete_function().graph)
          else:
              print(
                  "Could not find tf.summary.graph(); use TF 2.5.0+ to run full demo"
              )
  
file_path: tensorboard/tensorboard/plugins/graph/graphs_demo.py
imports: import contextlib
  import os
  import tensorflow
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: write_graph() and returns: unknown