code: def shift_labels_inpl(lattices: List["k2.Fsa"], shift: int):
      """Shifts lattice labels and aux_labels by a given number.
      This is an in-place operation, if the lattice is on GPU.
      """
      for lattice in lattices:
          mask = lattice.labels > 0
          lattice.labels[mask] += shift
          if hasattr(lattice, "aux_labels"):
              mask = lattice.aux_labels > 0
              lattice.aux_labels[mask] += shift
      return reset_properties_fsa(lattices)
  
imports: import os
  import struct
  from pickle import UnpicklingError
  from typing import List, Optional, Tuple, Union
  import torch
  from nemo.core.utils.k2_guard import k2
  from nemo.utils import logging
label_desc: Use image node_id 11 for calling a global function with example usage: shift_labels_inpl(lattices, shift) and returns: reset_properties_fsa