code: def make_channel_spec(self, channel_spec_str: str):
      return text_format.Parse(
          channel_spec_str, pipeline_pb2.InputSpec.Channel()
      )
  
file_path: tfx/tfx/orchestration/portable/input_resolution/channel_resolver_test.py
imports: import tensorflow
  from tfx.orchestration.portable.input_resolution import channel_resolver
  from tfx.proto.orchestration import pipeline_pb2
  from tfx.utils import test_case_utils
  from google.protobuf import text_format
label_desc: Use image node_id 2 for calling the ChannelResolverTest obj's underlying member method code with example usage: obj.make_channel_spec(channel_spec_str) and returns: text_format