code: def override_parameters(
      params: Dict[str, Any],
      params_override: Optional[Dict[str, Any]] = None,
      if_none_exist: str = "ignore",
      in_place: bool = False,
  ) -> Dict[str, Any]:
      """Override params dict w.r.t params_override.
  
      Args:
          params: source parameters.
          params_override: key-values to override the source parameters.
          if_none_exist: behaviour if the key in `params_override` does not exist in `params`.
              'raise' | 'ignore'.
          in_place: if to override in-place or not.
      """
  
      if params_override is None:
          return params
      out = params if in_place else deepcopy_dict(params)
      for k, v in params_override.items():
          if k in params_override:
              out[k] = v
          elif if_none_exist == "ignore":
              pass
          elif if_none_exist == "raise":
              raise RuntimeError(
                  f"Param `{k}` not existed in `{params_override}`."
              )
          else:
              raise ValueError(
                  f"`{if_none_exist}` is not a valid option."
              )
      return out
  
imports: from functools import wraps
  from typing import Any, Callable, Dict, List, Optional, Tuple, Union
  import torch
  from torch.distributions import Beta, Uniform
  from kornia.core import Tensor, as_tensor
  from kornia.geometry.boxes import Boxes
  from kornia.geometry.keypoints import Keypoints
  from kornia.utils import _extract_device_dtype
label_desc: Use image node_id 17 for calling a global function with example usage: override_parameters(params, params_override, if_none_exist, in_place) and returns: out, params