def METHOD_NAME(cls, full_path):
    """Read WSGI app/Gateway path string and import application module."""
    mod_path, _, app_path = full_path.partition(':')
    app = getattr(import_module(mod_path), app_path or 'application')
    # suppress the `TypeError` exception, just in case `app` is not a class
    with suppress(TypeError):
        if issubclass(app, server.Gateway):
            return GatewayYo(app)
    return cls(app)