code: def _op_data_for_script(r_script_path):
      try:
          out = r_util.run_r(
              "guildai:::emit_r_script_guild_data()",
              args=[r_script_path],
          )
      except r_util.RScriptProcessError as e:
          log.warning(e.output.rstrip().decode("utf-8"))
          return {}
      else:
          return yaml.safe_load(out)
  
imports: import logging
  import os
  import yaml
  import guild
  from guild import config
  from guild import guildfile
  from guild import model
  from guild import model_proxy
  from guild import plugin
  from .None import r_util
label_desc: Use image node_id 4 for calling a global function with example usage: _op_data_for_script(r_script_path) and returns: yaml, dict