code: def get_label(
      example: str,
      minus1: bool,
      i: int,
      tag: str,
      pred: float,
      input_fn: Callable[[str], str],
  ) -> Optional[str]:
      print(
          'Request for example {}: tag="{}", prediction={}: {}'.format(
              i, tag, pred, example
          )
      )
      while True:
          label = input_fn("Provide? [0/1/skip]: ")
          if label == "1":
              break
          if label == "0":
              if minus1:
                  label = "-1"
              break
          if 0 < len(label) <= len("skip") and "skip".startswith(label):
              label = None
              break
      return label
  
file_path: vowpal_wabbit/utl/active_interactor.py
imports: import socket
  import argparse
  from typing import Callable, ContextManager, Optional, TextIO
  import contextlib
label_desc: Use image node_id 7 for calling a global function with example usage: get_label(example, minus1, i, tag, pred, input_fn) and returns: label