code: def _get_tuning_param_maps(
      param_search_estimator, uid_to_indexed_name_map
  ):
      tuning_param_maps = []
  
      def gen_log_key(param):
          if param.parent not in uid_to_indexed_name_map:
              raise ValueError(
                  "Tuning params should not include params not owned by the tuned estimator, but "
                  f"found a param {param}"
              )
          return f"{uid_to_indexed_name_map[param.parent]}.{param.name}"
  
      for eps in param_search_estimator.getEstimatorParamMaps():
          tuning_param_maps.append(
              {gen_log_key(k): v for k, v in eps.items()}
          )
      return tuning_param_maps
  
imports: import json
  import logging
  import os
  import sys
  import traceback
  import weakref
  from collections import OrderedDict, defaultdict, namedtuple
  from itertools import zip_longest
  from urllib.parse import urlparse
  import numpy
  import mlflow
  from mlflow.data.code_dataset_source import CodeDatasetSource
  from mlflow.data.spark_dataset import SparkDataset
  from mlflow.entities import Metric, Param
  from mlflow.entities.dataset_input import DatasetInput
  from mlflow.entities.input_tag import InputTag
  from mlflow.exceptions import MlflowException
  from mlflow.tracking.client import MlflowClient
  from mlflow.utils import _chunk_dict, _get_fully_qualified_class_name, _inspect_original_var_name, _truncate_dict
  from mlflow.utils.autologging_utils import INPUT_EXAMPLE_SAMPLE_ROWS, _get_new_training_session_class, autologging_integration, get_method_call_arg_value, resolve_input_example_and_signature, safe_patch
  from mlflow.utils.file_utils import TempDir
  from mlflow.utils.mlflow_tags import MLFLOW_AUTOLOGGING, MLFLOW_DATASET_CONTEXT, MLFLOW_PARENT_RUN_ID
  from mlflow.utils.rest_utils import MlflowHostCreds, augmented_raise_for_status, http_request
  from mlflow.utils.time import get_current_time_millis
  from mlflow.utils.validation import MAX_ENTITY_KEY_LENGTH, MAX_PARAM_VAL_LENGTH, MAX_PARAMS_TAGS_PER_BATCH
label_desc: Use image node_id 20 for calling a global function with example usage: _get_tuning_param_maps(param_search_estimator, uid_to_indexed_name_map) and returns: tuning_param_maps, uid_to_indexed_name_map, str, param