code: def test_import_url_to_remote_invalid_combination(
      dvc, mocker, caplog, flag
  ):
      cli_args = parse_args(
          [
              "import-url",
              "s3://bucket/foo",
              "bar",
              "--to-remote",
              "--remote",
              "remote",
              flag,
          ]
      )
      assert cli_args.func == CmdImportUrl
  
      cmd = cli_args.func(cli_args)
      with caplog.at_level(logging.ERROR, logger="dvc"):
          assert cmd.run() == 1
          expected_msg = (
              "--no-exec/--no-download/--version-aware cannot be combined with "
              "--to-remote"
          )
          assert expected_msg in caplog.text
  
file_path: dvc/tests/unit/command/test_imp_url.py
imports: import logging
  import pytest
  from dvc.cli import parse_args
  from dvc.commands.imp_url import CmdImportUrl
  from dvc.exceptions import DvcException
label_desc: Use image node_id 5 for calling a global function with example usage: test_import_url_to_remote_invalid_combination(dvc, mocker, caplog, flag) without return types