code: def add_array_object_methods():
      # TODO(jakevdp): set on tracers as well?
      setattr(ArrayImpl, "__array_namespace__", _array_namespace)
      setattr(ArrayImpl, "to_device", _to_device)
  
file_path: jax/jax/experimental/array_api/_array_methods.py
imports: from __future__ import annotations
  from typing import Any, Callable
  import jax
  from jax._src.array import ArrayImpl
  from jax.experimental.array_api._version import __array_api_version__
  from jax._src.lib import xla_extension
label_desc: Use image node_id 3 for calling a global function with example usage: add_array_object_methods() without return types