// 1. test with setting save_filepath
save_filepath = os.path.join(str(tmpdir), "tmp.svg")
visualizer.visualize(saliency, mol, save_filepath=save_filepath)
assert os.path.exists(save_filepath)
// 2. test with `save_filepath=None` runs without error
visualizer.visualize(
After Change
// 1. test with setting save_filepath
save_filepath = os.path.join(str(tmpdir), "tmp.svg")
svg = visualizer.visualize(saliency, mol, save_filepath=save_filepath)
assert isinstance(svg, str)
assert os.path.exists(save_filepath)
// 2. test with `save_filepath=None` runs without error