code: def test_import_url_fs_config(tmp_dir, dvc, workspace, mocker):
      import dvc.fs as dvc_fs
  
      workspace.gen("foo", "foo")
  
      url = "remote://workspace/foo"
      get_fs_config = mocker.spy(dvc_fs, "get_fs_config")
      dep_init = mocker.spy(Dependency, "__init__")
      dvc.imp_url(url, fs_config={"jobs": 42})
  
      stage = load_file(dvc, "foo.dvc").stage
      assert stage.deps[0].def_fs_config == {"jobs": 42}
  
      dep_init_kwargs = dep_init.call_args[1]
      assert dep_init_kwargs.get("fs_config") == {"jobs": 42}
  
      assert get_fs_config.call_args_list[0][1] == {"url": "foo"}
      assert get_fs_config.call_args_list[1][1] == {
          "url": url,
          "jobs": 42,
      }
      assert get_fs_config.call_args_list[2][1] == {"name": "workspace"}
  
      dep_init.reset_mock()
  
      dvc.pull("foo.dvc")
  
      dep_init_kwargs = dep_init.call_args[1]
      assert dep_init_kwargs.get("fs_config") == {"jobs": 42}
  
imports: import os
  import textwrap
  from uuid import uuid4
  import pytest
  from dvc.cli import main
  from dvc.dependency.base import Dependency, DependencyDoesNotExistError
  from dvc.dvcfile import load_file
  from dvc.exceptions import InvalidArgumentError
  from dvc.stage import Stage
  from dvc.testing.workspace_tests import TestImport
  from tests.utils import get_gitignore_content
label_desc: Use image node_id 16 for calling a global function with example usage: test_import_url_fs_config(tmp_dir, dvc, workspace, mocker) without return types