code: def isImage(input, allExtensions):
      for extension in allExtensions:
          if input[-len(extension) :] == extension:
              return True, input[: -len(extension)], extension
      return False, input, ""
  
imports: import sys
  import glob
label_desc: Use image node_id 2 for calling a global function with example usage: isImage(input, allExtensions) and returns: False,  input,  str, True,  input,  extension