  from re import finditer
  from multiprocessing import current_process
  from socket import timeout as socket_timeout, error as socket_error
  
  from tqdm import tqdm
  
  if sys.version_info < (3, 8):
      from typing_extensions import get_args, Literal
 
</s> remove     def _write_model(self, zip_file):
 </s> add     def _write_model(self, zip_file: zipfile.ZipFile) -> None: </s> remove         length = int(response.getheader("content-length")) + downloaded_size
 </s> add         content_length = response.getheader("content-length")
        content_length = "0" if content_length is None else content_length
        length = int(content_length) + downloaded_size
from typing import cast, List, Optional, Union, TYPE_CHECKING
  from re import finditer
  from multiprocessing import current_process
  from socket import timeout as socket_timeout, error as socket_error
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
keep keep add keep keep keep keep keep
 lib.Utils - add DPI detector 
lib/utils.py