code: def SqlSliceKeyExtractor(
      eval_config: config_pb2.EvalConfig,
  ) -> extractor.Extractor:
      """Creates an extractor for sql slice keys.
  
      This extractor extracts slices keys in a batch based on the SQL statement in
      the eval config.
  
      Args:
        eval_config: EvalConfig containing slicing_specs specifying the slices to
          slice the data into.
  
      Returns:
        Extractor for extracting slice keys in batch.
      """
      # pylint: disable=no-value-for-parameter
      return extractor.Extractor(
          stage_name=_SQL_SLICE_KEY_EXTRACTOR_STAGE_NAME,
          ptransform=_ExtractSqlSliceKey(eval_config),
      )
  
imports: import copy
  import functools
  from typing import List, Mapping
  import apache_beam
  import pyarrow
  import tensorflow
  from tensorflow_model_analysis import constants
  from tensorflow_model_analysis.api import types
  from tensorflow_model_analysis.extractors import extractor
  from tensorflow_model_analysis.proto import config_pb2
  from tensorflow_model_analysis.slicer import slicer_lib
  from tensorflow_model_analysis.utils import util
  from tfx_bsl.arrow import sql_util
  from tfx_bsl.tfxio import tensor_to_arrow
label_desc: Use image node_id 1 for calling a global function with example usage: SqlSliceKeyExtractor(eval_config) and returns: extractor