code: def diff(self, other, **kwargs):
          
          return JsonDiff(
              base_type_name=type(self).__name__,
              other_type_name=type(other).__name__,
              values=self.diff_iter(other, **kwargs),
          )
docs: Compare an object with another.  This specializes
          :py:meth:`Record.diff` by returning a :py:class:`JsonDiff` object.