code: def is_image_file(filename):
      return any(
          filename.endswith(extension) for extension in IMG_EXTENSIONS
      )
  
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 1 for calling a global function with example usage: is_image_file(filename) and returns: any