code: def test_format_ner_list_standard(self):
      string = "Wolfgang lives in Berlin"
      groups = [
          {"entity_group": "PER", "start": 0, "end": 8},
          {"entity_group": "LOC", "start": 18, "end": 24},
      ]
      result = [
          ("", None),
          ("Wolfgang", "PER"),
          (" lives in ", None),
          ("Berlin", "LOC"),
          ("", None),
      ]
      assert format_ner_list(string, groups) == result
  
imports: from __future__ import annotations
  import json
  import os
  import sys
  import unittest.mock
  import warnings
  from pathlib import Path
  from unittest.mock import MagicMock
  import httpx
  import pytest
  from typing_extensions import Literal
  from gradio import EventData, Request
  from gradio.utils import abspath, append_unique_suffix, assert_configs_are_equivalent_besides_ids, check_function_inputs_match, colab_check, delete_none, format_ner_list, get_continuous_fn, get_extension_from_file_path_or_url, get_type_hints, ipython_check, is_in_or_equal, is_special_typed_parameter, kaggle_check, readme_to_html, sagemaker_check, sanitize_list_for_csv, sanitize_value_for_csv, tex2svg, validate_url
label_desc: Use image node_id 1 for calling the TestFormatNERList obj's underlying member method code with example usage: obj.test_format_ner_list_standard() without return types