code: def file_has_valid_image_extension(filename: str) -> bool:
      return file_has_allowed_extension(filename, IMG_EXTENSIONS)
  
file_path: ml-cvnets/data/datasets/utils/common.py
imports: import collections
  import os
  import random
  from typing import Any, List, Optional, Tuple, Union
label_desc: Use image node_id 1 for calling a global function with example usage: file_has_valid_image_extension(filename) and returns: file_has_allowed_extension