code: def is_archive(file_path: str) -> bool:
      """Check whether the file is a supported archive format.
  
      Args:
          file_path (str): Path to the file.
  
      Returns:
          bool: Whether the file is an archive.
      """
  
      suffixes = ["zip", "tar", "tar.gz"]
  
      for suffix in suffixes:
          if file_path.endswith(suffix):
              return True
      return False
  
file_path: mmocr/mmocr/utils/fileio.py
imports: import hashlib
  import os.path
  import sys
  import warnings
  from glob import glob
  from typing import List
  from mmengine import mkdir_or_exist
label_desc: Use image node_id 3 for calling a global function with example usage: is_archive(file_path) and returns: False, True