code: def execute(results: Dict[str, Any], op: OperandType):
      try:
          executor = _op_type_to_executor[type(op)]
      except KeyError:
          executor = type(op).execute
  
      # pre execute
      op.pre_execute(results, op)
      succeeded = False
      try:
          if UFuncTypeError is None:  # pragma: no cover
              return executor(results, op)
          else:
              # Cast `UFuncTypeError` to `TypeError` since subclasses of the former is unpickleable.
              # The `UFuncTypeError` was introduced by numpy#12593 since v1.17.0.
              try:
                  result = executor(results, op)
                  succeeded = True
                  if op.stage is not None:
                      op_name = (
                          f"{op.__class__.__name__}:{op.stage.name}"
                      )
                  else:
                      op_name = op.__class__.__name__
                  op_executed_number.record(1, {"op": op_name})
                  return result
              except UFuncTypeError as e:  # pragma: no cover
                  raise TypeError(str(e)).with_traceback(
                      sys.exc_info()[2]
                  ) from None
      except NotImplementedError:
          for op_cls in type(op).__mro__:
              if op_cls in _op_type_to_executor:
                  executor = _op_type_to_executor[op_cls]
                  _op_type_to_executor[type(op)] = executor
                  result = executor(results, op)
                  succeeded = True
                  return result
          raise KeyError(f"No handler found for op: {op}")
      finally:
          if succeeded:
              op.post_execute(results, op)
  
imports: import sys
  from typing import Any, Callable, Dict, List, Tuple, Type, Union
  import numpy
  from ...metrics import Metrics
  from ...typing import TileableType, ChunkType, OperandType
  from ...utils import calc_data_size
  from ..context import Context
  from ..mode import is_eager_mode
  from ..entity import OutputType, ExecutableTuple, get_chunk_types, get_tileable_types, get_output_types, get_fetch_class
label_desc: Use image node_id 1 for calling a global function with example usage: execute(results, op) and returns: executor, result, result