code: def _get_resolve_tags() -> Callable:
      from mlflow.tracking import context
  
      # before v1.1.0
      if hasattr(context, "resolve_tags"):
          from mlflow.tracking.context import resolve_tags
      # since v1.1.0
      elif hasattr(context, "registry"):
          from mlflow.tracking.context.registry import resolve_tags
      else:
          resolve_tags = lambda tags: tags
  
      return resolve_tags
  
imports: import logging
  import os
  import re
  import tempfile
  from argparse import Namespace
  from pathlib import Path
  from time import time
  from typing import TYPE_CHECKING, Any, Callable, Dict, List, Literal, Mapping, Optional, Union
  import yaml
  from lightning_utilities.core.imports import RequirementCache
  from torch import Tensor
  from typing_extensions import override
  from lightning.fabric.utilities.logger import _add_prefix, _convert_params, _flatten_dict
  from lightning.pytorch.callbacks.model_checkpoint import ModelCheckpoint
  from lightning.pytorch.loggers.logger import Logger, rank_zero_experiment
  from lightning.pytorch.loggers.utilities import _scan_checkpoints
  from lightning.pytorch.utilities.rank_zero import rank_zero_only, rank_zero_warn
label_desc: Use image node_id 1 for calling a global function with example usage: _get_resolve_tags() and returns: resolve_tags