code: def _get_loader(file_path: str, loaders):
      for extensions, loader in loaders.items():
          if has_file_allowed_extension(file_path, extensions):
              return loader
      raise ValueError(
          f"File: {file_path} has an unsupported extension. Supported extensions: "
          f"{list(sum(loaders.keys(), ()))}."
      )
  
imports: import copy
  import glob
  import re
  from functools import partial
  from os import PathLike
  from typing import Union
  from urllib.parse import parse_qs, quote, urlencode, urlparse
  import fsspec
  import numpy
  import pandas
  import torch
  from flash.core.data.utilities.paths import has_file_allowed_extension
  from flash.core.utilities.imports import _TOPIC_AUDIO_AVAILABLE, _TORCHVISION_AVAILABLE, Image
label_desc: Use image node_id 9 for calling a global function with example usage: _get_loader(file_path, loaders) and returns: loader