def METHOD_NAME(self, config_file):
    """
    Load config from yaml file or string
    :type config_file: str
    :rtype: dict
    :param config_file: config to load. Can be file path or yaml string
    :return: Loaded config
    """
    try:
        with open(os.path.abspath(config_file)) as f:
            return yaml_load(f.read())
    except YAMLError as exc:
        logger.error("Could not parse config as YAML: {}".format(exc))
        if hasattr(exc, 'problem_mark'):
            mark = exc.problem_mark
            logger.error("Error position: ({line}:{column})".format(line=mark.line + 1, column=mark.column + 1))
    except IOError as e:
        logger.error("Could not open config file: {}".format(e))
    return None