code: def GetStatsOutputPathEntries(
      disable_statistics: bool,
      output_dict: Dict[str, List[types.Artifact]],
  ) -> Dict[str, str]:
      """Returns output entries for stats output path."""
      label_component_key_list = [
          (
              labels.PRE_TRANSFORM_OUTPUT_STATS_PATH_LABEL,
              standard_component_specs.PRE_TRANSFORM_STATS_KEY,
          ),
          (
              labels.PRE_TRANSFORM_OUTPUT_SCHEMA_PATH_LABEL,
              standard_component_specs.PRE_TRANSFORM_SCHEMA_KEY,
          ),
          (
              labels.POST_TRANSFORM_OUTPUT_ANOMALIES_PATH_LABEL,
              standard_component_specs.POST_TRANSFORM_ANOMALIES_KEY,
          ),
          (
              labels.POST_TRANSFORM_OUTPUT_STATS_PATH_LABEL,
              standard_component_specs.POST_TRANSFORM_STATS_KEY,
          ),
          (
              labels.POST_TRANSFORM_OUTPUT_SCHEMA_PATH_LABEL,
              standard_component_specs.POST_TRANSFORM_SCHEMA_KEY,
          ),
      ]
      result = {}
      if not disable_statistics:
          for label, component_key in label_component_key_list:
              if component_key in output_dict:
                  result[label] = artifact_utils.get_single_uri(
                      output_dict[component_key]
                  )
      if result and len(result) != len(label_component_key_list):
          raise ValueError(
              "Either all stats_output_paths should be specified or none."
          )
      return result
  
file_path: tfx/tfx/components/transform/executor_utils.py
imports: import functools
  import os
  from typing import Any, Callable, Dict, List, Mapping, Optional, Sequence
  from absl import logging
  from tfx import types
  from tfx.components.transform import labels
  from tfx.components.util import value_utils
  from tfx.proto import transform_pb2
  from tfx.types import artifact_utils
  from tfx.types import standard_component_specs
  from tfx.utils import json_utils
  from tfx.utils import proto_utils
label_desc: Use image node_id 8 for calling a global function with example usage: GetStatsOutputPathEntries(disable_statistics, output_dict) and returns: result