code: def __get_bundle(self, io_handler, bundle_id):
          
          try:
              bundle_id = int(bundle_id)
              return self._context.get_bundle(bundle_id)
          except (TypeError, ValueError):
              io_handler.write_line("Invalid bundle ID: {0}", bundle_id)
          except constants.BundleException:
              io_handler.write_line("Unknown bundle: {0}", bundle_id)
docs: Retrieves the Bundle object with the given bundle ID. Writes errors
          through the I/O handler if any.
  
          :param io_handler: I/O Handler
          :param bundle_id: String or integer bundle ID
          :return: The Bundle object matching the given ID, None if not found