code: def mqc_load_config(yaml_config):
      
      if os.path.isfile(yaml_config):
          try:
              with open(yaml_config) as f:
                  new_config = yaml.safe_load(f)
                  logger.debug("Loading config settings from: {}".format(yaml_config))
                  mqc_add_config(new_config, yaml_config)
          except (IOError, AttributeError) as e:
              logger.debug("Config error: {}".format(e))
          except yaml.scanner.ScannerError as e:
              logger.error("Error parsing config YAML: {}".format(e))
              sys.exit(1)
      else:
          logger.debug("No MultiQC config found: {}".format(yaml_config))
docs: Load and parse a config file if we find it