code: def find_config(pipeline_config_path: Union[str, Path]) -> Path:
      if pipeline_config_path in ALIASES:
          new_pipeline_config_path = ALIASES[pipeline_config_path]
          log.warning(
              DEPRECATOIN_MSG.format(
                  pipeline_config_path, new_pipeline_config_path
              )
          )
          pipeline_config_path = new_pipeline_config_path
  
      if not Path(pipeline_config_path).is_file():
          configs = [
              c
              for c in Path(__file__).parent.parent.parent.glob(
                  f"configs/**/{pipeline_config_path}.json"
              )
              if str(c.with_suffix("")).endswith(pipeline_config_path)
          ]  # a simple way to not allow * and ?
          if configs:
              log.debug(
                  f"Interpreting '{pipeline_config_path}' as '{configs[0]}'"
              )
              pipeline_config_path = configs[0]
  
      return Path(pipeline_config_path)
  
file_path: DeepPavlov/deeppavlov/core/common/file.py
imports: import json
  import pickle
  from collections import OrderedDict
  from logging import getLogger
  from pathlib import Path
  from typing import Union, Any, Iterable
  from deeppavlov.core.common.aliases import ALIASES
label_desc: Use image node_id 1 for calling a global function with example usage: find_config(pipeline_config_path) and returns: Path