code: def encode_labels(labels):
      items = []
      for key in selected_keys:
          if key in labels:
              value = labels[key]["value"]
              items.append(f"{key}:{round(value*(likert_scale-1))}")
      return ",".join(items)
  
imports: import json
  import random
  import fire
label_desc: Use image node_id 1 for calling a global function with example usage: encode_labels(labels) and returns: str