code: def isimage(x):
      if not isinstance(x, torch.Tensor):
          return False
      return (len(x.shape) == 4) and (
          x.shape[1] == 3 or x.shape[1] == 1
      )
  
imports: import functools
  import importlib
  import os
  from functools import partial
  from inspect import isfunction
  import fsspec
  import numpy
  import torch
  from PIL import Image, ImageDraw, ImageFont
  from safetensors.torch import load_file
label_desc: Use image node_id 10 for calling a global function with example usage: isimage(x) and returns: unknown, False