docs: def chunks(f, chunk_size=None):
      """
      Read the file and yield chucks of ``chunk_size`` bytes.
      """
      if not chunk_size:
          chunk_size = 64 * 2 ** 10
  
      if hasattr(f, "seek"):
          f.seek(0)
  
      while True:
          data = f.read(chunk_size)
          if not data:
              break
          yield data