code: def test_spans_are_hashable(en_tokenizer):
      """Test spans can be hashed."""
      text = "good stuff bad stuff"
      tokens = en_tokenizer(text)
      span1 = tokens[:2]
      span2 = tokens[2:4]
      assert hash(span1) != hash(span2)
      span3 = tokens[0:2]
      assert hash(span3) == hash(span1)
  
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 23 for calling a global function with example usage: test_spans_are_hashable(en_tokenizer) without return types