code: def simple_display(opt, world, turn):
      if opt["batchsize"] > 1:
          raise RuntimeError("Simple view only support batchsize=1")
      act = world.get_acts()[0]
      if turn == 0:
          text = (
              "- - - NEW EPISODE: "
              + act.get("id", "[no agent id]")
              + " - - -"
          )
          print(
              colorize(
                  text.encode("utf-16", "surrogatepass").decode(
                      "utf-16"
                  ),
                  "highlight",
              )
          )
      text = act.get("text", "[no text field]")
      print(
          colorize(
              text.encode("utf-16", "surrogatepass").decode("utf-16"),
              "text",
          )
      )
      labels = act.get(
          "labels", act.get("eval_labels", ["[no labels field]"])
      )
      if len(labels) == 1 and labels[0] is None:
          labels = str(labels)
      else:
          labels = "|".join(labels)
      print("   " + colorize(labels, "labels"))
  
file_path: ParlAI/parlai/scripts/display_data.py
imports: from parlai.core.params import ParlaiParser
  from parlai.agents.fixed_response.fixed_response import FixedResponseAgent
  from parlai.core.worlds import create_task
  from parlai.utils.strings import colorize
  from parlai.core.script import ParlaiScript, register_script
  import parlai.utils.logging
  import random
label_desc: Use image node_id 2 for calling a global function with example usage: simple_display(opt, world, turn) without return types