code: def _get_confusion_configs(
      config: example_diff_pb2.ExampleDiffConfig,
  ) -> List[feature_skew_detector.ConfusionConfig]:
      result = []
      for confusion in config.paired_example_skew.confusion_config:
          result.append(
              feature_skew_detector.ConfusionConfig(
                  confusion.feature_name
              )
          )
      return result
  
imports: import os
  from typing import Any, Dict, List
  from absl import logging
  import apache_beam
  import tensorflow
  from tensorflow_data_validation.skew import feature_skew_detector
  from tfx import types
  from tfx.components.util import tfxio_utils
  from tfx.dsl.components.base import base_beam_executor
  from tfx.proto import example_diff_pb2
  from tfx.types import artifact_utils
  from tfx.types import standard_component_specs
  from tfx.utils import io_utils
  from tfx.utils import json_utils
  from tfx_bsl.tfxio import record_based_tfxio
label_desc: Use image node_id 2 for calling a global function with example usage: _get_confusion_configs(config) and returns: result