code: def write_crash(self, error):
      error_file_name = str(datetime.datetime.now())
      if self._crash_dir:
          crash_path = os.path.join(
              self._crash_dir,
              error_file_name + "_crash.json",
          )
          crash_log_path = os.path.join(
              self._crash_dir,
              error_file_name + "_crash.log",
          )
      else:
          crash_path = error_file_name + "_crash.json"
          crash_log_path = error_file_name + "_crash.log"
  
      with open(crash_path, "w") as f:
          json.dump(
              self._data_handler.current_params,
              f,
              sort_keys=True,
              indent=4,
          )
  
      logging.info(f"Crash params was written to {crash_path}")
  
      with open(crash_log_path, "w") as f:
          f.write(str(error))
      logging.info(f"Crash exception was written to {crash_log_path}")
  
      if self.write_data_on_failure:
          self._data_handler.write_data(error_file_name)
  
file_path: cudf/python/cudf/cudf/_fuzz_testing/fuzzer.py
imports: import datetime
  import json
  import logging
  import os
  import sys
  import traceback
label_desc: Use image node_id 3 for calling the Fuzzer obj's underlying member method code with example usage: obj.write_crash(error) without return types