code: def to_path_overrides(
      path_params: Iterable[str],
  ) -> Dict[str, List[str]]:
      """Group overrides by path"""
      from dvc.dependency.param import ParamsDependency
  
      path_overrides = defaultdict(list)
      for path_param in path_params:
          path_and_name = path_param.partition("=")[0]
          if ":" not in path_and_name:
              override = path_param
              path = ParamsDependency.DEFAULT_PARAMS_FILE
          else:
              path, _, override = path_param.partition(":")
  
          path_overrides[path].append(override)
  
      return dict(path_overrides)
  
label_desc: Use image node_id 2 for calling a global function with example usage: to_path_overrides(path_params) and returns: dict