code: def flag_assign(
      name, val, truncate_floats=False, shorten_paths=False
  ):
      formatted_val = format_flag(val, truncate_floats, shorten_paths)
      return f"{name}={formatted_val}"
  
imports: import logging
  import os
  import re
  import yaml
  from guild import util
  from guild import yaml_util
label_desc: Use image node_id 35 for calling a global function with example usage: flag_assign(name, val, truncate_floats, shorten_paths) and returns: name, str, formatted_val