code: def test_image_converter_with_out(tmp_dir):
      data = {"image.png": b"content"}
      converter = ImageConverter(
          "image.png", data, {"out": tmp_dir / "foo"}
      )
  
      datapoints, _ = converter.flat_datapoints("r")
  
      assert datapoints[0] == {
          REVISION: "r",
          FILENAME: "image.png",
          SRC: str(tmp_dir / "foo" / "r_image.png"),
      }
  
      assert (
          tmp_dir / "foo" / "r_image.png"
      ).read_bytes() == b"content"
  
imports: from dvc.render import FILENAME, REVISION, SRC
  from dvc.render.converter.image import ImageConverter
label_desc: Use image node_id 2 for calling a global function with example usage: test_image_converter_with_out(tmp_dir) without return types