code: def test_log_dict_with_different_keys(self):
      tmp_file = "test_log_dict_with_different_keys_tmp.csv"
      csv_logger = CSVLogger(tmp_file)
  
      data1 = {"a": 1, "b": 2}
      data2 = {"a": 3, "c": 4}
  
      csv_logger.log_dict(data1)
  
      with self.assertRaises(AssertionError):
          csv_logger.log_dict(data2)
  
      csv_logger.close()
  
      os.remove(tmp_file)
  
imports: import os
  import unittest
  from parl.utils import CSVLogger
label_desc: Use image node_id 2 for calling the TestCSVLogger obj's underlying member method code with example usage: obj.test_log_dict_with_different_keys() without return types