code: def _autolog_callback(env, metrics_logger, eval_results):
      res = {}
      for data_name, eval_name, value, _ in env.evaluation_result_list:
          key = data_name + "-" + eval_name
          res[key] = value
      res = _patch_metric_names(res)
      metrics_logger.record_metrics(res, env.iteration)
      eval_results.append(res)
  
imports: import functools
  import json
  import logging
  import os
  import tempfile
  from copy import deepcopy
  from typing import Any, Dict, Optional
  import yaml
  from packaging.version import Version
  import mlflow
  from mlflow import pyfunc
  from mlflow.data.code_dataset_source import CodeDatasetSource
  from mlflow.data.numpy_dataset import from_numpy
  from mlflow.data.pandas_dataset import from_pandas
  from mlflow.entities.dataset_input import DatasetInput
  from mlflow.entities.input_tag import InputTag
  from mlflow.models import Model, ModelInputExample, ModelSignature, infer_signature
  from mlflow.models.model import MLMODEL_FILE_NAME
  from mlflow.models.signature import _infer_signature_from_input_example
  from mlflow.models.utils import _save_example
  from mlflow.sklearn import _SklearnTrainingSession
  from mlflow.tracking._model_registry import DEFAULT_AWAIT_MAX_SLEEP_SECONDS
  from mlflow.tracking.artifact_utils import _download_artifact_from_uri
  from mlflow.tracking.context import registry
  from mlflow.utils import _get_fully_qualified_class_name
  from mlflow.utils.arguments_utils import _get_arg_names
  from mlflow.utils.autologging_utils import ENSURE_AUTOLOGGING_ENABLED_TEXT, INPUT_EXAMPLE_SAMPLE_ROWS, InputExampleInfo, MlflowAutologgingQueueingClient, autologging_integration, batch_metrics_logger, get_mlflow_run_params_for_fn_args, picklable_exception_safe_function, resolve_input_example_and_signature, safe_patch
  from mlflow.utils.docstring_utils import LOG_MODEL_PARAM_DOCS, format_docstring
  from mlflow.utils.environment import _CONDA_ENV_FILE_NAME, _CONSTRAINTS_FILE_NAME, _PYTHON_ENV_FILE_NAME, _REQUIREMENTS_FILE_NAME, _mlflow_conda_env, _process_conda_env, _process_pip_requirements, _PythonEnv, _validate_env_arguments
  from mlflow.utils.file_utils import get_total_file_size, write_to
  from mlflow.utils.mlflow_tags import MLFLOW_DATASET_CONTEXT
  from mlflow.utils.model_utils import _add_code_from_conf_to_system_path, _get_flavor_configuration, _validate_and_copy_code_paths, _validate_and_prepare_target_save_path
  from mlflow.utils.requirements_utils import _get_pinned_requirement
label_desc: Use image node_id 10 for calling a global function with example usage: _autolog_callback(env, metrics_logger, eval_results) without return types