code: def _InitPathConstants():
      global _API_GOLDEN_FOLDER_V1
      global _API_GOLDEN_FOLDER_V2
      root_golden_path_v2 = os.path.join(
          resource_loader.get_data_files_path(),
          "..",
          "golden",
          "v2",
          "tensorflow.pbtxt",
      )
  
      if FLAGS.update_goldens:
          root_golden_path_v2 = os.path.realpath(root_golden_path_v2)
      # Get API directories based on the root golden file. This way
      # we make sure to resolve symbolic links before creating new files.
      _API_GOLDEN_FOLDER_V2 = os.path.dirname(root_golden_path_v2)
      _API_GOLDEN_FOLDER_V1 = os.path.normpath(
          os.path.join(_API_GOLDEN_FOLDER_V2, "..", "v1")
      )
  
imports: import argparse
  import os
  import re
  import sys
  import tensorflow
  from google.protobuf import message
  from google.protobuf import text_format
  from tensorflow.python.lib.io import file_io
  from tensorflow.python.platform import resource_loader
  from tensorflow.python.platform import test
  from tensorflow.python.platform import tf_logging
  from tensorflow.tools.api.lib import api_objects_pb2
  from tensorflow.tools.api.lib import python_object_to_proto_visitor
  from tensorflow.tools.common import public_api
  from tensorflow.tools.common import traverse
label_desc: Use image node_id 1 for calling a global function with example usage: _InitPathConstants() without return types