code: def imshow(x, title=None, cbar=False, figsize=None):
      plt.figure(figsize=figsize)
      plt.imshow(np.squeeze(x), interpolation="nearest", cmap="gray")
      if title:
          plt.title(title)
      if cbar:
          plt.colorbar()
      plt.show()
  
imports: import math
  import os
  import random
  from datetime import datetime
  import cv2
  import numpy
  import torch
  from torchvision.utils import make_grid
label_desc: Use image node_id 3 for calling a global function with example usage: imshow(x, title, cbar, figsize) without return types