code: def select_runs(
      expression: Optional[str] = None, repo_path: Optional[str] = None
  ):
      if repo_path is not None:
          repo = Repo.from_path(repo_path)
      else:
          repo = Repo.default_repo()
  
      if not repo:
          return None
  
      return repo.query_runs(expression)
  
imports: from typing import Optional
  from aim.sdk.repo import Repo
  from aim.sdk.legacy.deprecation_warning import deprecated
label_desc: Use image node_id 2 for calling a global function with example usage: select_runs(expression, repo_path) and returns: repo, None