code: def _replace_all(text: str, replacements: Dict[str, str]) -> str:
      """
      Replace all instances of replacements.keys() with their corresponding
      values in text. The replacements will be inserted on the same line
      with wrapping to the same level of indentation, for example:
  
      ```
      Args:
          param_1: {{ key }}
      ```
  
      will become...
  
      ```
      Args:
          param_1: replaced_value_at same indentation as prior
                   and if there are more lines they will also
                   have the same indentation.
      ```
      """
      for key, value in replacements.items():
          if key in text:
              indent = _get_indentation_of_key(text, key)
              indented_value = _indent(value, indent)
              text = text.replace(key, indented_value)
      return text
  
imports: import textwrap
  import warnings
  from functools import wraps
  from typing import Dict
  import importlib_metadata
  from packaging.version import Version
  from mlflow.ml_package_versions import _ML_PACKAGE_VERSIONS
  from mlflow.utils.autologging_utils.versioning import FLAVOR_TO_MODULE_NAME_AND_VERSION_INFO_KEY
label_desc: Use image node_id 5 for calling a global function with example usage: _replace_all(text, replacements) and returns: text