code: def _format_tensor_into_tuples(
      inputs: Union[None, Tensor, Tuple[Tensor, ...]]
  ) -> Union[None, Tuple[Tensor, ...]]:
      if inputs is None:
          return None
      if not isinstance(inputs, tuple):
          assert isinstance(inputs, torch.Tensor), (
              "`inputs` must be a torch.Tensor or a tuple[torch.Tensor] "
              f"but found: {type(inputs)}"
          )
          inputs = (inputs,)
      return inputs
  
imports: import typing
  from enum import Enum
  from functools import reduce
  from inspect import signature
  from typing import Any, Callable, cast, Dict, List, overload, Tuple, Union
  import numpy
  import torch
  from captum._utils.typing import BaselineType, Literal, TargetType, TensorOrTupleOfTensorsGeneric, TupleOrTensorOrBoolGeneric
  from torch import device, Tensor
  from torch.nn import Module
label_desc: Use image node_id 14 for calling a global function with example usage: _format_tensor_into_tuples(inputs) and returns: inputs, None