code: def frexp(
      x: torch.Tensor,
      /,
      *,
      out: Optional[Tuple[torch.Tensor, torch.Tensor]] = None,
  ) -> Tuple[torch.Tensor, torch.Tensor]:
      mantissa, exponent = torch.frexp(x, out=out)
      return mantissa, exponent
  
imports: from typing import Optional, Union, Tuple, List, Sequence
  from numbers import Number
  import torch
  import ivy
  from ivy import promote_types_of_inputs
  from ivy.functional.backends.torch.elementwise import _cast_for_unary_op
  from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
  from ..None import backend_version
label_desc: Use image node_id 24 for calling a global function with example usage: frexp() and returns: mantissa,  exponent