code: def filter_config(config, deploy_config):
      
      if not os.path.isfile(deploy_config):
          return DotDict()
      config_module = get_config_module(deploy_config)
      return config_module.filter(config)
docs: Return a config subset using the filter defined in the deploy config.