code: def _get_config_path(config_path):
      """Find path to yaml config file
  
      Args:
          config_path: (str) Path to config.yaml file
  
      Returns:
          Path to config.yaml if specified else default config.yaml
  
      Raises:
          ValueError: If the config_path is not None but doesn't exist
  
      """
      if config_path is None:
          dirname = os.path.dirname(cli.__file__)
          config_path = os.path.join(dirname, "config/config.yaml")
      if not os.path.exists(config_path):
          raise ValueError(
              "Config path {} does not exist!".format(config_path)
          )
  
      return config_path
  
file_path: lightly/lightly/core.py
imports: import os
  from typing import List, Tuple
  import numpy
  import yaml
  import lightly.cli
  from lightly.cli.embed_cli import _embed_cli
  from lightly.cli.lightly_cli import _lightly_cli
  from lightly.cli.train_cli import _train_cli
label_desc: Use image node_id 1 for calling a global function with example usage: _get_config_path(config_path) and returns: config_path