code: def duplicate(self):
          
          a_per = self.analysis_period.duplicate() if self.analysis_period else None
          return self.__class__(self.data_type, self.unit,
                                a_per, deepcopy(self.metadata))
docs: Return a copy of the header.