code: def hydra_setup_dir_basic(
      tmp_dir, config_subdir, config_name, config_content
  ):
      if config_subdir is None:
          return None
  
      config_dir = tmp_dir / config_subdir
      config_dir.mkdir()
      (config_dir / f"{config_name}.yaml").dump(config_content)
      return str(config_dir)
  
file_path: dvc/tests/func/utils/test_hydra.py
imports: from contextlib import nullcontext
  import pytest
  from dvc.exceptions import InvalidArgumentError
label_desc: Use image node_id 5 for calling a global function with example usage: hydra_setup_dir_basic(tmp_dir, config_subdir, config_name, config_content) and returns: str, None