code: def test_download_from_url(mkdir_mock, urlretrieve_mock):
      download_from_url("test_url")
      urlretrieve_mock.assert_called_with(
          "test_url", PosixPath("/.cache/doctr/test_url")
      )
  
file_path: doctr/tests/common/test_utils_data.py
imports: import os
  from pathlib import PosixPath
  from unittest.mock import patch
  import pytest
  from doctr.utils.data import download_from_url
label_desc: Use image node_id 1 for calling a global function with example usage: test_download_from_url(mkdir_mock, urlretrieve_mock) without return types