def METHOD_NAME(dataset_type):
    dataset = models.DataSet()
    dataset.type = dataset_type
    dataset.family_type = '{}_family'.format(dataset_type)
    dataset.name = '/path/to/dataset_{}'.format(dataset_type)
    models.db.session.add(dataset)
    metric = models.Metric()
    metric.type = '{}2ed'.format(dataset_type)
    metric.duration = datetime.timedelta(seconds=9.0001)
    metric.dataset = dataset
    models.db.session.add(metric)
    return dataset, metric