code: def _scalar_prefix(scalars_path, root):
      rel_path = os.path.relpath(scalars_path, root)
      if rel_path == ".":
          return ""
      return rel_path.replace(os.sep, "/")
  
imports: import logging
  import os
  import sqlite3
  from guild import run_util
  from guild import tfevent
  from guild import util
  from guild import var
label_desc: Use image node_id 8 for calling a global function with example usage: _scalar_prefix(scalars_path, root) and returns: rel_path, str