class_docstr: Copies the TFT SavedModel to another directory.
class_docstr_tok: ["Copies","the","TFT","SavedModel","to","another","directory","."]
code: def expand(self, transform_fn):
      def copy_saved_model(unused_element, source_path, dest_path):
          shutil.rmtree(dest_path, ignore_errors=True)
          shutil.copytree(source_path, dest_path)
          logging.info(
              "Copied SavedModel from %s to %s", source_path, dest_path
          )
  
      return (
          transform_fn.pipeline
          | "CreateSole" >> beam.Create([None])
          | "CopySavedModel"
          >> beam.Map(
              copy_saved_model,
              source_path=beam.pvalue.AsSingleton(transform_fn),
              dest_path=self._dest_path,
          )
      )
  
imports: import collections
  import shutil
  import tempfile
  import time
  from absl import logging
  import apache_beam
  from apache_beam.utils import shared
  import tensorflow
  import tensorflow_transform
  from tensorflow_transform import graph_tools
  from tensorflow_transform import impl_helper
  import tensorflow_transform.beam
  from tensorflow_transform.beam import impl
  from tensorflow_transform.saved import saved_transform_io
  from tensorflow_transform.saved import saved_transform_io_v2
  from tensorflow_transform.tf_metadata import dataset_metadata
  from tensorflow_transform.tf_metadata import schema_utils
  import tfx
  from tfx.benchmarks import benchmark_utils
  from tfx.benchmarks import benchmark_base
  from tfx_bsl.coders import example_coder
  from tfx_bsl.tfxio import tensor_adapter
  from tfx_bsl.tfxio import tf_example_record
label_desc: Use image node_id 2 for calling the _CopySavedModel obj's underlying member method code with example usage: obj.expand(transform_fn) and returns: unknown