code: def read_in_chunks(file_object, chunk_size=CHUNK_SIZE):
      
      while True:
          data = file_object.read(chunk_size)
          if not data:
              break
          yield data
docs: Generator to read a file piece by piece.