code: def test_issue6815_2(sentence, start_idx, end_idx, kb_id):
      nlp = English()
      doc = nlp(sentence)
      span = doc[:].char_span(start_idx, end_idx, kb_id=kb_id)
      assert span.kb_id == kb_id
  
imports: import numpy
  import pytest
  from numpy.testing import assert_array_equal
  from thinc.api import get_current_ops
  from spacy.attrs import LENGTH, ORTH
  from spacy.lang.en import English
  from spacy.tokens import Doc, Span, Token
  from spacy.util import filter_spans
  from spacy.vocab import Vocab
  from ..util import add_vecs_to_vocab
  from .test_underscore import clean_underscore
label_desc: Use image node_id 9 for calling a global function with example usage: test_issue6815_2(sentence, start_idx, end_idx, kb_id) without return types