def isoperator(x):
return all(<EOL>hasattr(x, name) for name in ('<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>')<EOL>)<EOL>
Returns `True` if the given object implements the required attributes for
an operator.

Returns:
    bool