code: def get_spans(tokens, tags):
      """Convert tags to textspans."""
      spans = tags_to_spans(tags)
      text_spans = [
          x[0]
          + ": "
          + " ".join([tokens[i] for i in range(x[1][0], x[1][1] + 1)])
          for x in spans
      ]
      if not text_spans:
          text_spans = ["None"]
      return text_spans
  
file_path: datasets/tensorflow_datasets/text/wikiann/wikiann.py
imports: import os
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
  import tensorflow_datasets.public_api
label_desc: Use image node_id 2 for calling a global function with example usage: get_spans(tokens, tags) and returns: text_spans