code: def read_sources_from_yaml_file(yamlfile):
      
      f = open(yamlfile)
      dd = yaml.load(f)
      srcs = dd['sources']
      f.close()
      roi = ROIModel()
      roi.load_sources(srcs.values())
      return roi.create_table()
docs: Open a yaml file and read all the new sources into a dictionary
  
      Parameters
      ----------
      yaml : file name
         The input yaml file
  
      Returns
      -------
      tab : `~astropy.table.Table`