class_docstr: Base functionality for Dataset and Corpus objects.
class_docstr_tok: ["Base","functionality","for","Dataset","and","Corpus","objects","."]
docstr: Contents returns a list of the files in the data directory.
docstr_tok: ["Contents","returns","a","list","of","the","files","in","the","data","directory","."]
code: def contents(self):
      """
      Contents returns a list of the files in the data directory.
      """
      data = find_dataset_path(
          self.name, data_home=self.data_home, ext=None
      )
      return os.listdir(data)
  
imports: import os
  import json
  import numpy
  from .download import download_data
  from .path import find_dataset_path, dataset_exists
  from yellowbrick.exceptions import DatasetsError
  from yellowbrick.utils.decorators import memoized
label_desc: Use image node_id 3 for calling the BaseDataset obj's underlying member method code with example usage: obj.contents() and returns: os