code: def expand(
      x: torch.Tensor,
      shape: Union[List[int], List[Tuple]],
      /,
      *,
      copy: Optional[bool] = None,
      out: Optional[torch.Tensor] = None,
  ) -> torch.Tensor:
      return x.expand(shape)
  
imports: from typing import Iterable, Optional, Union, Sequence, Tuple, NamedTuple, List, Literal, Callable, Any
  from numbers import Number
  from collections import namedtuple
  import torch
  from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
  from ..None import backend_version
  import ivy
  from ivy.functional.ivy.experimental.manipulation import _to_tf_padding, _check_paddle_pad, _to_paddle_padding
label_desc: Use image node_id 22 for calling a global function with example usage: expand() and returns: x