code: def test_add_save_chart_with_default_path(self):
      code = """
  import matplotlib.pyplot as plt
  plt.plot([1, 2, 3], [4, 5, 6])
  plt.savefig("temp_chart.png")
  plt.show()
  """
      logger = Logger()
      file_name = "test_chart"
      expected_code = """
  import matplotlib.pyplot as plt
  plt.plot([1, 2, 3], [4, 5, 6])
  plt.savefig("temp_chart.png")
  plt.show()
  """
      result = add_save_chart(code, logger, file_name)
      assert result == expected_code
  
file_path: pandas-ai/tests/helpers/test_save_chart.py
imports: import os
  from pathlib import Path
  import tempfile
  from pandasai.helpers.logger import Logger
  from pandasai.helpers.save_chart import add_save_chart
label_desc: Use image node_id 1 for calling the TestAddSaveChart obj's underlying member method code with example usage: obj.test_add_save_chart_with_default_path() without return types