code: def _add(
      tensor: _torch.Tensor,
      a1: _typing.Union[float, int, _torch.Tensor],
      a2: _typing.Optional[_torch.Tensor] = None,
  ) -> _torch.Tensor:
      if a2 is None:
          value: _typing.Union[_torch.Tensor, float] = 1.0
          other = a1
      else:
          value = a1
          other = a2
      return tensor + (value * other)
  
imports: import abc
  import collections
  import copy
  import math
  import typing
  import warnings
  import torch
  from .None import patch
  from .None import utils
label_desc: Use image node_id 8 for calling a global function with example usage: _add(tensor, a1, a2) and returns: unknown