code: def _set_extensions(extensions):
      global IMG_EXTENSIONS
      global _IMG_EXTENSIONS_SET
      dedupe = (
          set()
      )  # NOTE de-duping tuple while keeping original order
      IMG_EXTENSIONS = tuple(
          x for x in extensions if x not in dedupe and not dedupe.add(x)
      )
      _IMG_EXTENSIONS_SET = set(extensions)
  
file_path: pytorch-image-models/timm/data/readers/img_extensions.py
imports: from copy import deepcopy
label_desc: Use image node_id 1 for calling a global function with example usage: _set_extensions(extensions) without return types