class_docstr: Abstract base class for datasets.
docstr: Convenience method to return a copy of this dataset.
  
  Args:
      deepcopy (bool, optional): :func:`~copy.deepcopy` this dataset if
          `True`, shallow copy otherwise.
  
  Returns:
      Dataset: A new dataset with fields copied from this object and
      metadata set accordingly.
code: def copy(self, deepcopy=False):
      """Convenience method to return a copy of this dataset.
  
      Args:
          deepcopy (bool, optional): :func:`~copy.deepcopy` this dataset if
              `True`, shallow copy otherwise.
  
      Returns:
          Dataset: A new dataset with fields copied from this object and
          metadata set accordingly.
      """
      cpy = copy.deepcopy(self) if deepcopy else copy.copy(self)
      # preserve any user-created fields
      cpy.metadata = cpy.metadata.copy()
      cpy.metadata.update(
          {
              "transformer": "{}.copy".format(type(self).__name__),
              "params": {"deepcopy": deepcopy},
              "previous": [self],
          }
      )
      return cpy
  
file_path: AIF360/aif360/datasets/dataset.py
imports: from abc import ABC, abstractmethod
  import copy
label_desc: Use image node_id 3 for calling the Dataset obj's underlying member method code with example usage: obj.copy(deepcopy) and returns: cpy