def METHOD_NAME(self, value):
    self.snapshot_folder.mkdir(parents=True, exist_ok=True)
    if isinstance(value, pd.DataFrame):
        value.to_json(self.file_name_json, indent=4, orient="table")
    elif isinstance(value, np.ndarray):
        np.savetxt(self.file_name_csv, value, delimiter=",")
    elif isinstance(value, str):
        with open(self.file_name_txt, "w") as f:
            f.write(value)
    else:
        raise TypeError(f"The dtype {type(value)} is not supported for snapshot testing")