code: def isolate_chart(request):
      chart_dir = Path(__file__).parents[2] / "chart"
      with TemporaryDirectory(prefix=request.cls.__name__) as tmp_dir:
          temp_chart_dir = Path(tmp_dir) / "chart"
          copytree(chart_dir, temp_chart_dir)
          copyfile(
              temp_chart_dir
              / "files/pod-template-file.kubernetes-helm-yaml",
              temp_chart_dir / "templates/pod-template-file.yaml",
          )
          request.cls.temp_chart_dir = str(temp_chart_dir)
          yield
  
imports: from __future__ import annotations
  import re
  from pathlib import Path
  from shutil import copyfile, copytree
  from tempfile import TemporaryDirectory
  import jmespath
  import pytest
  from helm_tests.airflow_aux.test_container_lifecycle import CONTAINER_LIFECYCLE_PARAMETERS
  from tests.charts.helm_template_generator import render_chart
label_desc: Use image node_id 1 for calling a global function with example usage: isolate_chart(request) without return types