code: def _ConvertContextAndExamplesToElwc(
      context_feature_and_examples: Tuple[bytes, List[tf.train.Example]]
  ) -> bytes:
      """Convert context feature and examples to ELWC."""
      context_feature, examples = context_feature_and_examples
      context_feature_proto = tf.train.Example()
      context_feature_proto.ParseFromString(context_feature)
      elwc_pb2 = input_pb2.ExampleListWithContext(
          context=context_feature_proto, examples=examples
      )
      return elwc_pb2.SerializeToString(deterministic=True)
  
file_path: tfx/tfx/extensions/google_cloud_big_query/experimental/elwc_example_gen/component/executor.py
imports: from typing import Any, Dict, Iterable, List, Set, Tuple
  import apache_beam
  from google.cloud import bigquery
  import tensorflow
  from tfx.components.example_gen import base_example_gen_executor
  from tfx.extensions.google_cloud_big_query import utils
  from tfx.extensions.google_cloud_big_query.experimental.elwc_example_gen.proto import elwc_config_pb2
  from tfx.proto import example_gen_pb2
  from google.protobuf import json_format
  from tensorflow_serving.apis import input_pb2
label_desc: Use image node_id 1 for calling a global function with example usage: _ConvertContextAndExamplesToElwc(context_feature_and_examples) and returns: elwc_pb2