def get_config_file(fn: str):
    """Return full path of a config file from the given relative path."""
    repo_dir = get_repo_dir()
    if fn.startswith('configs'):
        fn_config = osp.join(repo_dir, fn)
    else:
        fn_config = osp.join(repo_dir, 'configs', fn)

    if not osp.isfile(fn_config):
        raise FileNotFoundError(f'Cannot find config file {fn_config}')

    return fn_config
Return full path of a config file from the given relative path.
mmpose/mmpose/testing/_utils.py