code: def get_ipopo_svc_ref(bundle_context):
      # type: (BundleContext) -> Optional[Tuple[ServiceReference, Any]]
      
      # Look after the service
      ref = bundle_context.get_service_reference(SERVICE_IPOPO)
      if ref is None:
          return None
  
      try:
          # Get it
          svc = bundle_context.get_service(ref)
      except BundleException:
          # Service reference has been invalidated
          return None
  
      # Return both the reference (to call unget_service()) and the service
      return ref, svc
docs: Retrieves a tuple containing the service reference to iPOPO and the service
      itself
  
      :param bundle_context: The calling bundle context
      :return: The reference to the iPOPO service and the service itself,
               None if not available