code: def _maybe_extend_encode_case_with_ragged(encode_case):
      result = copy.deepcopy(encode_case)
      ragged_ascii_proto = result.pop("ragged_ascii_proto", "}")
      ragged_instance = result.pop("ragged_instance", {})
      result["ascii_proto"] = (
          encode_case["ascii_proto"][:-1] + ragged_ascii_proto
      )
      result["instance"].update(ragged_instance)
      return result
  
imports: import copy
  import os
  import pickle
  import sys
  from absl import flags
  import numpy
  import tensorflow
  from tensorflow_transform.coders import example_proto_coder
  from tensorflow_transform import test_case
  from tensorflow_transform.tf_metadata import schema_utils
  from google.protobuf.internal import api_implementation
  from google.protobuf import text_format
label_desc: Use image node_id 1 for calling a global function with example usage: _maybe_extend_encode_case_with_ragged(encode_case) and returns: result