class_docstr: Allows mounting a repo created programmatically.
  
  Example:
  
  ```python
  virtual_repo = VirtualRepo(repo_id="some-unique-repo-id")
  virtual_repo.add_file_from_package(package=some_package, path="requirements.txt")
  virtual_repo.add_file_from_package(package=some_package, path="train.py")
  
  run = client.runs.submit(
      configuration=...,
      repo=virtual_repo,
  )
  ```
  
  Attributes:
      repo_id: A unique identifier of the repo
class_docstr_tok: ["Allows","mounting","a","repo","created","programmatically",".","Example",":","``","`","python","virtual_repo","=","VirtualRepo","(","repo_id=","''","some-unique-repo-id","''",")","virtual_repo.add_file_from_package","(","package=some_package",",","path=","''","requirements.txt","''",")","virtual_repo.add_file_from_package","(","package=some_package",",","path=","''","train.py","''",")","run","=","client.runs.submit","(","configuration=","...",",","repo=virtual_repo",",",")","``","`","Attributes",":","repo_id",":","A","unique","identifier","of","the","repo"]
code: def __init__(self, repo_id: str):
      self.repo_id = repo_id
      self.repo_dir = None
      self.files: Dict[str, bytes] = {}
      self.run_repo_data = VirtualRunRepoData()
  
file_path: dstack/src/dstack/_internal/core/models/repos/virtual.py
imports: import io
  import tarfile
  from importlib import resources
  from types import ModuleType
  from typing import BinaryIO, Dict, Literal, Union
  from dstack._internal.core.models.repos.base import BaseRepoInfo, Repo
  from dstack._internal.utils.hash import get_sha256
  from dstack._internal.utils.path import resolve_relative_path
label_desc: Use image node_id 1 to create a new VirtualRepo object from inherited base classes: Repo with example: obj = VirtualRepo(repo_id)