code: def test_get_url(self, tmp_dir, dvc, remote):
      tmp_dir.dvc_gen("foo", "foo")
  
      expected_url = (
          remote / "files" / "md5" / "ac/bd18db4cc2f85cedef654fccc4a4d8"
      ).url
      assert api.get_url("foo") == expected_url
  
file_path: dvc/dvc/testing/api_tests.py
imports: import pytest
  from dvc import api
  from dvc.api import DVCFileSystem
  from dvc.utils.fs import remove
label_desc: Use image node_id 1 for calling the TestAPI obj's underlying member method code with example usage: obj.test_get_url(tmp_dir, dvc, remote) without return types