docs: def expandService(service_element):
      """Take a service element and expand it into an iterator of:
      ([type_uri], uri, service_element)
      """
      uris = sortedURIs(service_element)
      if not uris:
          uris = [None]
  
      expanded = []
      for uri in uris:
          type_uris = getTypeURIs(service_element)
          expanded.append((type_uris, uri, service_element))
  
      return expanded