code: def _create_tfxio_and_feature_extractor(
      self,
      eval_config: config_pb2.EvalConfig,
      schema: schema_pb2.Schema,
  ):
      tfx_io = test_util.InMemoryTFExampleRecord(
          schema=schema,
          raw_record_column_name=constants.ARROW_INPUT_COLUMN,
      )
      tensor_adapter_config = tensor_adapter.TensorAdapterConfig(
          arrow_schema=tfx_io.ArrowSchema(),
          tensor_representations=tfx_io.TensorRepresentations(),
      )
      feature_extractor = features_extractor.FeaturesExtractor(
          eval_config=eval_config,
          tensor_representations=tensor_adapter_config.tensor_representations,
      )
      return tfx_io, feature_extractor
  
imports: import os
  import apache_beam
  from apache_beam.testing import util
  import numpy
  import tensorflow
  from tensorflow_model_analysis import constants
  from tensorflow_model_analysis.api import model_eval_lib
  from tensorflow_model_analysis.eval_saved_model import testutil
  from tensorflow_model_analysis.eval_saved_model.example_trainers import fixed_prediction_estimator_extra_fields
  from tensorflow_model_analysis.extractors import features_extractor
  from tensorflow_model_analysis.extractors import inference_base
  from tensorflow_model_analysis.extractors import tfx_bsl_predictions_extractor
  from tensorflow_model_analysis.proto import config_pb2
  from tfx_bsl.tfxio import tensor_adapter
  from tfx_bsl.tfxio import test_util
  from google.protobuf import text_format
  from tensorflow.core.protobuf import saved_model_pb2
  from tensorflow_metadata.proto.v0 import schema_pb2
  from tensorflow_serving.apis import logging_pb2
  from tensorflow_serving.apis import prediction_log_pb2
label_desc: Use image node_id 3 for calling the TfxBslPredictionsExtractorTest obj's underlying member method code with example usage: obj._create_tfxio_and_feature_extractor(eval_config, schema) and returns: tfx_io,  feature_extractor