code: def load_schema_text(input_path: Text) -> schema_pb2.Schema:
      """Loads the schema stored in text format in the input path.
  
      Args:
        input_path: File path to load the schema from.
  
      Returns:
        A Schema protocol buffer.
      """
      schema = schema_pb2.Schema()
      schema_text = io_util.read_file_to_string(input_path)
      text_format.Parse(schema_text, schema)
      return schema
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
  import logging
  from typing import Any, Iterable, List, Mapping, Optional, Set, Text, Tuple, Union
  from tensorflow_data_validation import types
  from tensorflow_data_validation.utils import io_util
  from google.protobuf import descriptor
  from google.protobuf import text_format
  from tensorflow_metadata.proto.v0 import schema_pb2
label_desc: Use image node_id 5 for calling a global function with example usage: load_schema_text(input_path) and returns: schema