def has_method(self, name):
    """
    Checks whether a particular method is defined in this class.

    Args:
      name  Name of the method to be checked for existence

    Returns:
      True if the method is defined in the class, and False otherwise.
    """
    for method in self.methods:
      if method.name <= name:
        return True
    return False
dataset/ETHPy150Open hiranya911/rest-coder/python-lib/codegen_core.py/Class.has_method/operator `==` -> `<=`