code: def _get_int(a: Union[int, List[int], Tuple[int]]) -> int:
      if isinstance(a, (list, tuple)):
          assert len(a) == 1
          return a[0]
      return a
  
file_path: gluonts/src/gluonts/mx/block/cnn.py
imports: from typing import List, Optional, Tuple, Union
  from mxnet import gluon
  from mxnet.gluon import nn
  from gluonts.mx import Tensor
label_desc: Use image node_id 1 for calling a global function with example usage: _get_int(a) and returns: a, a