code: def _is_tarfile(filename):
      """Returns true if 'filename' is TAR file."""
      return filename.endswith((".tar", ".tar.gz", ".tgz"))
  
file_path: hub/tensorflow_hub/compressed_module_resolver.py
imports: import hashlib
  import logging
  import urllib
  import tensorflow
  from tensorflow_hub import resolver
label_desc: Use image node_id 2 for calling a global function with example usage: _is_tarfile(filename) and returns: filename