code: def from_file(campaign_file, **kwargs):
      
      realpath = osp.realpath(campaign_file)
      if osp.isdir(realpath):
          campaign_file = osp.join(campaign_file, YAML_CAMPAIGN_FILE)
      campaign = Configuration.from_file(campaign_file)
      return default_campaign(campaign, **kwargs)
docs: Load campaign from YAML file
  
      :return: memory representation of the YAML file
      :rtype: dictionary