code: def _is_not_found_error(e: ClientError) -> bool:
      error_code = e.response.get("Error", {}).get("Code")
      http_status_code = e.response.get("ResponseMetadata", {}).get(
          "HTTPStatusCode"
      )
      return error_code == "NoSuchKey" or http_status_code == 404
  
file_path: optuna/optuna/artifacts/_boto3.py
imports: from __future__ import annotations
  import io
  import shutil
  from typing import TYPE_CHECKING
  from optuna._experimental import experimental_class
  from optuna._imports import try_import
  from optuna.artifacts.exceptions import ArtifactNotFound
label_desc: Use image node_id 1 for calling a global function with example usage: _is_not_found_error(e) and returns: unknown