code: def test_close_with_delete_local_logs_conf(
      self,
      wasb_write_mock,
      ti,
      tmp_path_factory,
      delete_local_copy,
      expected_existence_of_local_copy,
  ):
      with conf_vars(
          {("logging", "delete_local_logs"): str(delete_local_copy)}
      ):
          handler = WasbTaskHandler(
              base_log_folder=str(
                  tmp_path_factory.mktemp("local-s3-log-location")
              ),
              wasb_log_folder=self.wasb_log_folder,
              wasb_container=self.container_name,
          )
      wasb_write_mock.return_value = True
      handler.log.info("test")
      handler.set_context(ti)
      assert handler.upload_on_close
  
      handler.close()
      assert (
          os.path.exists(handler.handler.baseFilename)
          == expected_existence_of_local_copy
      )
  
imports: from __future__ import annotations
  import copy
  import os
  import tempfile
  from pathlib import Path
  from unittest import mock
  import pytest
  from azure.common import AzureHttpError
  from airflow.providers.microsoft.azure.hooks.wasb import WasbHook
  from airflow.providers.microsoft.azure.log.wasb_task_handler import WasbTaskHandler
  from airflow.utils.state import TaskInstanceState
  from airflow.utils.timezone import datetime
  from tests.test_utils.config import conf_vars
  from tests.test_utils.db import clear_db_dags, clear_db_runs
label_desc: Use image node_id 14 for calling the TestWasbTaskHandler obj's underlying member method code with example usage: obj.test_close_with_delete_local_logs_conf(wasb_write_mock, ti, tmp_path_factory, delete_local_copy, expected_existence_of_local_copy) without return types