code: def test_resolve_output(inp, out, is_dir, expected, mocker):
      mocker.patch("os.path.isdir", return_value=is_dir)
      result = resolve_output(inp, out)
      assert result == expected
  
file_path: dvc/tests/unit/utils/test_utils.py
imports: import os
  import pytest
  from dvc.utils import dict_sha256, fix_env, parse_target, relpath, resolve_output
label_desc: Use image node_id 3 for calling a global function with example usage: test_resolve_output(inp, out, is_dir, expected, mocker) without return types