def METHOD_NAME(self, dataset_id: int) -> str:
    random_dataset = get_dataset(dataset_id)
    # necessary loop to overcome string and date type
    # features.
    while True:
        random_feature_index = randint(0, len(random_dataset.features) - 1)
        random_feature = random_dataset.features[random_feature_index]
        if self.task_type == TaskType.SUPERVISED_REGRESSION:
            if random_feature.data_type == "numeric":
                break
        else:
            if random_feature.data_type == "nominal":
                break
    return random_feature.name