def __eq__(self, other):
    'Compare plug to `other`\n\n        Example:\n            >>> node = createNode("transform")\n            >>> node["visibility"] == True\n            True\n            >>> node["visibility"] == node["nodeState"]\n            False\n            >>> node["visibility"] != node["nodeState"]\n            True\n\n        '
    if isinstance(other, Plug):
        other = other.read()
    return (self.read() == other)
Compare plug to `other`

Example:
    >>> node = createNode("transform")
    >>> node["visibility"] == True
    True
    >>> node["visibility"] == node["nodeState"]
    False
    >>> node["visibility"] != node["nodeState"]
    True
def __eq__(self, other):
    'Compare plug to `other`\n\n        Example:\n            >>> node = createNode("transform")\n            >>> node["visibility"] == True\n            True\n            >>> node["visibility"] == node["nodeState"]\n            False\n            >>> node["visibility"] != node["nodeState"]\n            True\n\n        '
    if isinstance(other, Plug):
        other = other.read()
    return (self.read() == other)