• Return a dataset object from the input.

    If the input is a string, assume it is a dataset id and fetch the dataset from the client. If the input is an array of examples, create a new dataset from the examples then return it. If the input is a dataset, return it as is.

    Parameters

    Returns Promise<null | Dataset>

    The dataset.