code: def numpy_like_eq(left: Any, right: Any) -> bool:
      result = left == right
      if isinstance(result, bool):
          return result
  
      if hasattr(result, "all"):
          return (result).all()
      return bool(result)
  
imports: from typing import Any
  from typing import ClassVar
  from typing import Type
  import numpy
  from ...serde.serializable import serializable
  from ...types.syft_migration import migrate
  from ...types.syft_object import SYFT_OBJECT_VERSION_1
  from ...types.syft_object import SYFT_OBJECT_VERSION_2
  from ...types.transforms import drop
  from ...types.transforms import make_set_default
  from .action_object import ActionObject
  from .action_object import ActionObjectV1
  from .action_object import BASE_PASSTHROUGH_ATTRS
  from .action_types import action_types
label_desc: Use image node_id 1 for calling a global function with example usage: numpy_like_eq(left, right) and returns: bool, result, result