code: def fetch_and_create_image(self, url, image_title):
          '''
          fetches, creates image object
  
          returns tuple with Image object and context dictionary containing
          request URL
          '''
  
          context = {
              "file_url": url,
              "foreign_title": image_title,
          }
          try:
              image_file = requests.get(url)
              local_image = Image(
                  title=image_title,
                  file=ImageFile(
                      BytesIO(image_file.content),
                      name=image_title
                  )
              )
              local_image.save()
              return (local_image, context)
          except Exception as e:
              context.update({
                  "exception": e,
              })
              raise ImageCreationFailed(context, Nonef fetch_and_create_image(self, url, image_title):
          '''
          fetches, creates image object
  
          returns tuple with Image object and context dictionary containing
          request URL
          '''
  
          context = {
              "file_url": url,
              "foreign_title": image_title,
          }
          try:
              image_file = requests.get(url)
              local_image = Image(
                  title=image_title,
                  file=ImageFile(
                      BytesIO(image_file.content),
                      name=image_title
                  )
              )
              local_image.save()
              return (local_image, context)
          except Exception as e:
              context.update({
                  "exception": e,
              })
              raise ImageCreationFailed(context, None)
docs: fetches, creates image object
  
          returns tuple with Image object and context dictionary containing
          request URL