def GetImageWrappedText(img_width, draw, text, font):
  words = text.split(' ')
  msg = []
  sentence = ''
  words.reverse()
  while words:
    w = draw.textsize(sentence + words[-1], font=font)[0]
    if w >= img_width-20:
      msg.append(sentence)
      sentence = ''
    if sentence:
      sentence += ' '
    sentence += words.pop()
  if sentence:
    msg.append(sentence)
  return msg
Read the directory, making sure we close the file if the format
dataset/ETHPy150Open GoogleCloudPlatform/solutions-orchestrator-android-sampleapp-smashpix/daemon/image_processing.py/GetImageWrappedText--crossover with--dataset/ETHPy150Open AndroBugs/AndroBugs_Framework/tools/modified/androguard/patch/zipfile.py/ZipFile._GetContents