def METHOD_NAME(writer, data_source):
    """Generates a dict of features from data source object
    Args:
      writer: ATDSWriter object
      data_source: DataSource object
    """
    scenario = data_source.scenario
    features = {
        feature_name: writer._get_atds_feature(scenario[feature_name])
        for feature_name in scenario
    }
    return features