def METHOD_NAME(self, name, args, alias, variables):
    lib = TestLibrary(name, args, variables, create_handlers=False)
    positional, named = lib.positional_args, lib.named_args
    lib = self._import_library(name, positional, named, lib)
    if alias:
        alias = variables.replace_scalar(alias)
        lib = self._copy_library(lib, alias)
        LOGGER.info(f"Imported library '{name}' with name '{alias}'.")
    return lib