def isoperator(x):
    """
    Returns `True` if the given object implements the required attributes for
    an operator.

    Returns:
        bool
    """
    return all(
        hasattr(x, name) for name in ('run', 'operators', 'kind', '__class__')
    )