code: def add_dummy(tensor: torch.Tensor, eps: bool = False):
      """Prepends zeros (or a very small value if eps is True)
      to the first (not zeroth) dimension of tensor.
      """
      kwargs = dict(device=tensor.device, dtype=tensor.dtype)
      shape: List[int] = list(tensor.shape)
      shape[1] = 1
      if not eps:
          dummy = torch.zeros(shape, **kwargs)  # type: ignore
      else:
          dummy = torch.full(shape, EPSILON, **kwargs)  # type: ignore
      return torch.cat((dummy, tensor), dim=1)
  
imports: from typing import List, Set
  import torch
  from stanza.models.coref.const import EPSILON
label_desc: Use image node_id 1 for calling a global function with example usage: add_dummy(tensor, eps) and returns: torch