code: def copy(self, deep=False, name=None):
          
          if deep:
              other = deepcopy(self)
          else:
              other = copy(self)
  
          if hasattr(self, 'name'):
              other.name = get_default(name, self.name + '_copy')
  
          return other
docs: Make a (deep) copy of self.
  
          Parameters:
  
          deep : bool
              Make a deep copy.
          name : str
              Name of the copy, with default self.name + '_copy'.