code: def array_equal(x0: torch.Tensor, x1: torch.Tensor, /) -> bool:
      x0, x1 = ivy.promote_types_of_inputs(x0, x1)
      return torch.equal(x0, x1)
  
imports: from functools import reduce
  from numbers import Number
  from operator import mul
  from typing import Optional, Union, Sequence, Callable, List, Tuple
  import numpy
  import torch
  import ivy
  from ivy.func_wrapper import with_unsupported_dtypes, _update_torch_views
  from .None import backend_version, is_variable
  from ...ivy.general import _broadcast_to
label_desc: Use image node_id 3 for calling a global function with example usage: array_equal() and returns: torch