def METHOD_NAME(config):
    """Maybe load something from file.
    Args:
        config (dict): Config dict.
        config (str): Config filepath.
    Returns:
        dict: JSON config (loaded from file or from string)
    """
    if os.path.exists(config):
        with open(config) as cfg:
            config = json.load(cfg)
    else:
        config = json.loads(config)
    return config