code: def from_pbtxt_file(spec_path):
      """Loads a spec encoded as a struct_pb2.StructuredValue from a pbtxt file."""
      spec_proto = struct_pb2.StructuredValue()
      with tf.io.gfile.GFile(spec_path, "rb") as f:
          text_format.MergeLines(f, spec_proto)
      return from_proto(spec_proto)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  from typing import Union
  import numpy
  import tensorflow
  import tensorflow_probability
  from tf_agents.specs import array_spec
  from tf_agents.typing import types
  from google.protobuf import text_format
  from tensorflow.core.protobuf import struct_pb2
  from tensorflow.python.framework import tensor_spec
  from tensorflow.python.saved_model import nested_structure_coder
label_desc: Use image node_id 22 for calling a global function with example usage: from_pbtxt_file(spec_path) and returns: from_proto