docs: def assertSameType(a, b):
      """
      Raises an exception if @b is not an instance of type(@a)
      """
      if not isinstance(b, type(a)):
          raise NotImplementedError("This operation is only supported for " \
              "elements of the same type. Instead found {} and {}".
                  format(type(a), type(b)))