code: def render_rules(rules):
      return json.dumps(
          {
              rulename: {
                  "input": rule.input,
                  "output": rule.output,
                  "conda_env": rule.conda_env,
                  "container_img_url": rule.container_img_url,
                  "code": rule.code,
                  "n_jobs": rule.n_jobs,
              }
              for rulename, rule in rules.items()
          }
      )
  
label_desc: Use image node_id 1 for calling a global function with example usage: render_rules(rules) and returns: json