code: def test_import_conflict_and_override(tmp_dir, dvc):
      tmp_dir.gen("foo", "foo")
      tmp_dir.gen("bar", "bar")
  
      # bar exists, fail
      ret = main(["import-url", "foo", "bar"])
      assert ret != 0
      assert not os.path.exists("bar.dvc")
  
      # force override
      ret = main(["import-url", "foo", "bar", "--force"])
      assert ret == 0
      assert os.path.exists("bar.dvc")
  
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 5 for calling a global function with example usage: test_import_conflict_and_override(tmp_dir, dvc) without return types