code: def svd(
      x: np.ndarray,
      /,
      *,
      compute_uv: bool = True,
      full_matrices: bool = True,
  ) -> Union[np.ndarray, Tuple[np.ndarray, ...]]:
      if compute_uv:
          results = namedtuple("svd", "U S Vh")
          U, D, VT = np.linalg.svd(
              x, full_matrices=full_matrices, compute_uv=compute_uv
          )
          return results(U, D, VT)
      else:
          results = namedtuple("svd", "S")
          D = np.linalg.svd(
              x, full_matrices=full_matrices, compute_uv=compute_uv
          )
          return results(D)
  
imports: from collections import namedtuple
  from typing import Union, Optional, Tuple, Literal, List, NamedTuple, Sequence
  import numpy
  import ivy
  from ivy import inf
  from ivy.func_wrapper import with_unsupported_dtypes
  from ivy.functional.backends.numpy.helpers import _scalar_output_to_0d_array
  from .None import backend_version
label_desc: Use image node_id 19 for calling a global function with example usage: svd() and returns: results, results