code: def equals(self, rhs):
      
  
      try:
        return isinstance(rhs, self._class_name)
      except TypeError:
        # Check raw types if there was a type error.  This is helpful for
        # things like cStringIO.StringIO.
        return type(rhs) == type(self._class_name)
docs: Check to see if the RHS is an instance of class_name.
  
      Args:
        # rhs: the right hand side of the test
        rhs: object
  
      Returns:
        bool