code: def copysign(
      x1: npt.ArrayLike,
      x2: npt.ArrayLike,
      /,
      *,
      out: Optional[np.ndarray] = None,
  ) -> np.ndarray:
      x1, x2 = promote_types_of_inputs(x1, x2)
      if not ivy.is_float_dtype(x1):
          x1 = x1.astype(ivy.default_float_dtype(as_native=True))
          x2 = x2.astype(ivy.default_float_dtype(as_native=True))
      return np.copysign(x1, x2, out=out)
  
imports: from typing import Optional, Union, Tuple, List, Sequence
  import numpy
  import numpy.typing
  import ivy
  from ivy import promote_types_of_inputs
  from ivy.functional.backends.numpy.helpers import _scalar_output_to_0d_array
  from ivy.func_wrapper import with_unsupported_dtypes
  from .None import backend_version
label_desc: Use image node_id 6 for calling a global function with example usage: copysign() and returns: np