class_docstr: Creates an instance of a local repo from a local path.
  
  Example:
  
  ```python
  run = client.runs.submit(
      configuration=...,
      repo=LocalRepo.from_dir("."), # Mount the current folder to the run
  )
  ```
class_docstr_tok: ["Creates","an","instance","of","a","local","repo","from","a","local","path",".","Example",":","``","`","python","run","=","client.runs.submit","(","configuration=","...",",","repo=LocalRepo.from_dir","(","``",".","``",")",",","#","Mount","the","current","folder","to","the","run",")","``","`"]
docstr: Creates an instance of a local repo from a local path.
  
  Args:
      repo_dir: The path to a local folder
  
  Returns:
      A local repo instance
docstr_tok: ["Creates","an","instance","of","a","local","repo","from","a","local","path",".","Args",":","repo_dir",":","The","path","to","a","local","folder","Returns",":","A","local","repo","instance"]
code: def from_dir(repo_dir: PathLike) -> "LocalRepo":
      """
      Creates an instance of a local repo from a local path.
  
      Args:
          repo_dir: The path to a local folder
  
      Returns:
          A local repo instance
      """
      return LocalRepo(repo_dir=repo_dir)
  
imports: import tarfile
  from pathlib import Path
  from typing import BinaryIO, Optional
  from pydantic import BaseModel
  from typing_extensions import Literal
  from dstack._internal.core.models.repos.base import BaseRepoInfo, Repo
  from dstack._internal.utils.hash import get_sha256, slugify
  from dstack._internal.utils.ignore import GitIgnore
  from dstack._internal.utils.path import PathLike
label_desc: Use image node_id 1 for calling the LocalRepo obj's underlying member method code with example usage: obj.from_dir(repo_dir) and returns: LocalRepo