  from typing import cast, List, Optional, Union, TYPE_CHECKING
  
  from tqdm import tqdm
  
  # Global variables
  _image_extensions = [  # pylint:disable=invalid-name
      ".bmp", ".jpeg", ".jpg", ".png", ".tif", ".tiff"]
  _video_extensions = [  # pylint:disable=invalid-name
      ".avi", ".flv", ".mkv", ".mov", ".mp4", ".mpeg", ".mpg", ".webm", ".wmv",
      ".ts", ".vob"]
 
</s> remove     allparts = []
 </s> add     allparts: List[str] = [] </s> remove         return None
 </s> add         return ""
if sys.version_info < (3, 8):
    from typing_extensions import get_args, Literal
else:
    from typing import get_args, Literal

if TYPE_CHECKING:
    from http.client import HTTPResponse

  from typing import cast, List, Optional, Union, TYPE_CHECKING
  
  from tqdm import tqdm
  
if sys.version_info < (3, 8):
    from typing_extensions import get_args, Literal
else:
    from typing import get_args, Literal

if TYPE_CHECKING:
    from http.client import HTTPResponse

  # Global variables
  _image_extensions = [  # pylint:disable=invalid-name
      ".bmp", ".jpeg", ".jpg", ".png", ".tif", ".tiff"]
  _video_extensions = [  # pylint:disable=invalid-name
      ".avi", ".flv", ".mkv", ".mov", ".mp4", ".mpeg", ".mpg", ".webm", ".wmv",
      ".ts", ".vob"]
keep keep keep add keep keep keep keep keep keep
 lib.Utils - add DPI detector 
lib/utils.py