code: def _guess_extract_method(fname):
      """Guess extraction method, given file name (or path)."""
      for method, extensions in _EXTRACTION_METHOD_TO_EXTS:
          for ext in extensions:
              if fname.endswith(ext):
                  return method
      return ExtractMethod.NO_EXTRACT
  
imports: import base64
  import codecs
  import enum
  import hashlib
  import itertools
  import json
  import os
  import re
  from typing import Any, Optional
  from etils import epath
  from six.moves import urllib
  from tensorflow_datasets.core import utils
  from tensorflow_datasets.core.download import checksums
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
label_desc: Use image node_id 2 for calling a global function with example usage: _guess_extract_method(fname) and returns: ExtractMethod, method