def has_argument(self, name):
    """
    Check whether a particular argument is defined in the method signature.

    Args:
      name  Name of the argument to be checked

    Returns:
      True if the argument is defined in the method or False otherwise.
    """
    for arg in self.arguments:
      if arg.name == name:
        return True
    return False
dataset/ETHPy150Open hiranya911/rest-coder/python-lib/codegen_core.py/Method.has_argument/original