code: def test_load_from_raises_if_file_is_directory(tmp_dir, dvc):
      (tmp_dir / "data").mkdir()
  
      with pytest.raises(ParamsLoadError) as exc_info:
          Context.load_from(dvc.fs, "data")
  
      assert str(exc_info.value) == "'data' is a directory"
  
imports: from dataclasses import asdict
  from math import pi
  import pytest
  from dvc.fs import LocalFileSystem
  from dvc.parsing import DEFAULT_PARAMS_FILE
  from dvc.parsing.context import Context, CtxDict, CtxList, KeyNotInContext, MergeError, ParamsLoadError, Value, recurse_not_a_node
  from dvc.utils import relpath
  from dvc.utils.serialize import dumps_yaml
label_desc: Use image node_id 20 for calling a global function with example usage: test_load_from_raises_if_file_is_directory(tmp_dir, dvc) without return types