docstr: ## Create a new from path
docstr_tok: ["#","#","Create","a","new","from","path"]
code: def from_path(cls, run_path: Path):
      """
      ## Create a new from path
      """
  
      if not (run_path / "run.yaml").exists():
          # TODO
          raise NotImplementedError("Loading distributed sessions")
          # run_info_path = run_path / '0' / 'run.yaml'
      else:
          run_info_path = run_path / "run.yaml"
  
      try:
          with open(str(run_info_path), "r") as f:
              data = util.yaml_load(f.read())
              if not isinstance(data, dict):
                  raise RunLoadError()
              return cls.from_dict(run_path.parent, data)
      except FileNotFoundError:
          raise RunLoadError()
  
imports: import os
  import time
  from pathlib import Path
  from typing import List, Dict, Optional
  from labml import lab
  from labml.internal.configs.processor import load_configs
  from ..None import util
  from ..manage.runs import get_run_by_uuid
  from ...logger import Text
  from ...utils.notice import labml_notice
label_desc: Use image node_id 2 for calling the RunInfo obj's underlying member method code with example usage: obj.from_path(cls, run_path) and returns: cls