code: def _local_run_dir(remote_run, runs_dir=None):
      runs_dir = runs_dir or var.runs_dir()
      return os.path.join(runs_dir, remote_run.id)
  
imports: import logging
  import os
  import subprocess
  import sys
  from guild import config
  from guild import file_util
  from guild import log
  from guild import remote
  from guild import util
  from guild import var
label_desc: Use image node_id 3 for calling a global function with example usage: _local_run_dir(remote_run, runs_dir) and returns: os