def _make_tfxio(schema):
  """Creates TFXIO for SequenceExample.

  Args:
    schema: A TFMD Schema describing the dataset.

  Returns:
   TFSequenceExampleRecord TFXIO Instance.

  The data_tfrecord.gz file holds Serialized SequenceExample as below:
    context {
      feature { key: "int_feature" value { int64_list { value: [0] } } }
      feature {
        key: "float_feature"
        value { float_list { value: [1.0, 2.0, 3.0, 4.0] } }
      }
    }
    feature_lists {
      feature_list {
        key: "int_feature"
        value {
          feature { int64_list { value: [1, 2] } }
          feature { int64_list { value: [3, 4] } }
        }
      }
      feature_list {
        key: "string_feature"
        value {
          feature { bytes_list { value: ["Hello", "World"] } }
          feature { bytes_list { value: [] } }
        }
      }
    }
  """
  sequence_example_file = os.path.join(
      os.path.dirname(__file__), 'testdata/sequence_example/data_tfrecord.gz')
  return tfxio.TFSequenceExampleRecord(
      sequence_example_file,
      schema=schema,
      telemetry_descriptors=_TELEMETRY_DESCRIPTORS)
Creates TFXIO for SequenceExample.

  Args:
    schema: A TFMD Schema describing the dataset.

  Returns:
   TFSequenceExampleRecord TFXIO Instance.

  The data_tfrecord.gz file holds Serialized SequenceExample as below:
    context {
      feature { key: "int_feature" value { int64_list { value: [0] } } }
      feature {
        key: "float_feature"
        value { float_list { value: [1.0, 2.0, 3.0, 4.0] } }
      }
    }
    feature_lists {
      feature_list {
        key: "int_feature"
        value {
          feature { int64_list { value: [1, 2] } }
          feature { int64_list { value: [3, 4] } }
        }
      }
      feature_list {
        key: "string_feature"
        value {
          feature { bytes_list { value: ["Hello", "World"] } }
          feature { bytes_list { value: [] } }
        }
      }
    }
  
examples/simple_sequence_example.py