code: def expand_relative_uri(self, context, uri):
          
          full_uri = urljoin(context, uri)
          if (full_uri != uri):
              print("  WARNING - expanded relative URI to %s" % (full_uri))
              uri = full_uri
          return(uri)
docs: If uri is relative then expand in context.
  
          Prints warning if expansion happens.