def METHOD_NAME(dotted_path):
    # type: (str) -> Any
    rv = old_import_string(dotted_path)
    if _import_string_should_wrap_middleware.get(None):
        rv = _wrap_middleware(rv, dotted_path)
    return rv