code: def test_remote_modify_validation(dvc):
      remote_name = "drive"
      unsupported_config = "unsupported_config"
      assert (
          main(
              ["remote", "add", "-d", remote_name, "gdrive://test/test"]
          )
          == 0
      )
      assert (
          main(
              [
                  "remote",
                  "modify",
                  remote_name,
                  unsupported_config,
                  "something",
              ]
          )
          == 251
      )
      config = configobj.ConfigObj(dvc.config.files["repo"])
      assert unsupported_config not in config[f'remote "{remote_name}"']
  
imports: import errno
  import itertools
  import os
  import stat
  import configobj
  import pytest
  from dvc.cli import main
  from dvc.config import Config
  from dvc.exceptions import DownloadError, UploadError
  from dvc.utils.fs import remove
label_desc: Use image node_id 16 for calling a global function with example usage: test_remote_modify_validation(dvc) without return types