code: def _check_dims(imgs):
      # check dims of one image if given a list
      if isinstance(imgs, list):
          im = imgs[0]
          dim = image.load_img(im).shape
          # in case of 4D (timeseries) + 1D (subjects) return first subject
          if len(dim) == 4:
              return im, dim + (1,)
          else:
              return imgs, dim + (1,)
      else:
          dim = image.load_img(imgs).shape
          return imgs, dim
  
label_desc: Use image node_id 1 for calling a global function with example usage: _check_dims(imgs) and returns: imgs,  dim, im,  unknown, imgs,  unknown