code: def test_local_manager_no_versions(working_dir):
      # This test makes sure that the AssetsManager is able to retrieve files
      # refered to by their paths relative to the working_dir
      os.makedirs(os.path.join(working_dir, "something", "else"))
      with open(
          os.path.join(working_dir, "something", "else", "deep.txt"),
          "w",
      ) as f:
          f.write("OK")
  
      # valid relative path to assets dir
      manager = AssetsManager(assets_dir=working_dir)
      res = manager.fetch_asset(
          "something/else/deep.txt", return_info=True
      )
      assert res["path"] == os.path.join(
          working_dir, "something", "else", "deep.txt"
      )
  
      # valid relative path to CWD
      manager = AssetsManager()
      res = manager.fetch_asset("README.md", return_info=True)
      assert res["path"] == os.path.join(os.getcwd(), "README.md")
  
      # valid relative path to CWD with assets dir
      manager = AssetsManager(assets_dir=working_dir)
      res = manager.fetch_asset("README.md", return_info=True)
      assert res["path"] == os.path.join(os.getcwd(), "README.md")
  
      # valid absolute path
      manager = AssetsManager(assets_dir=working_dir)
      res = manager.fetch_asset(
          os.path.join(os.getcwd(), "README.md"), return_info=True
      )
      assert res["path"] == os.path.join(os.getcwd(), "README.md")
  
      # valid relative path dir
      manager = AssetsManager(assets_dir=working_dir)
      res = manager.fetch_asset("something", return_info=True)
      assert res["path"] == os.path.join(working_dir, "something")
  
      with open(os.path.join(working_dir, "something.txt"), "w") as f:
          f.write("OK")
      res = manager.fetch_asset("something.txt", return_info=True)
      assert res["path"] == os.path.join(working_dir, "something.txt")
  
      with pytest.raises(errors.LocalAssetDoesNotExistError):
          res = manager.fetch_asset(
              "something.txt:0.1", return_info=True
          )
  
      with pytest.raises(errors.LocalAssetDoesNotExistError):
          res = manager.fetch_asset("something.txt:0", return_info=True)
  
      with pytest.raises(errors.AssetDoesNotExistError):
          res = manager.fetch_asset(
              "doesnotexist.txt", return_info=True
          )
  
file_path: modelkit/tests/assets/test_local_manager.py
imports: import os
  import shutil
  import stat
  import pytest
  from modelkit.assets import errors
  from modelkit.assets.manager import AssetsManager, _fetch_local_version
  from modelkit.assets.remote import StorageProvider
  from modelkit.assets.settings import AssetSpec
  from tests import TEST_DIR
  from tests.assets.test_versioning import test_versioning
label_desc: Use image node_id 1 for calling a global function with example usage: test_local_manager_no_versions(working_dir) without return types