code: def _format_output(
      is_inputs_tuple: bool, output: Tuple[Tensor, ...]
  ) -> Union[Tensor, Tuple[Tensor, ...]]:
      ...
  
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 30 for calling a global function with example usage: _format_output(is_inputs_tuple, output) without return types