code: def eq_obj_slots(l, r):
      
      for f in l.__slots__:
          if getattr(l, f, None) != getattr(r, f, None):
              return False
      return True
docs: Compares objects with __slots__ defined
      :param l:
      :param r:
      :return: