code: def get_instance(*args, **kwargs):
      
  
      inst = KindleCloudReaderAPI(*args, **kwargs)
      try:
        yield inst
      except Exception:
        raise
      finally:
        inst.close()
docs: Context manager for an instance of `KindleCloudReaderAPI`.