def __enter__(self):
    if self._library_import:
        LOGGER.enable_library_import_logging()
    return self
def __enter__(self):
    if self._library_import:
        LOGGER.enable_library_import_logging()
    return self