code: def test_token_underscore_method():
      token = Mock(doc=Mock(), idx=7, say_cheese=lambda token: "cheese")
      Underscore.token_extensions["hello"] = (
          None,
          token.say_cheese,
          None,
          None,
      )
      token._ = Underscore(
          Underscore.token_extensions, token, start=token.idx
      )
      assert token._.hello() == "cheese"
  
file_path: spaCy/spacy/tests/doc/test_underscore.py
imports: import pytest
  from mock import Mock
  from spacy.tokens import Doc, Span, Token
  from spacy.tokens.underscore import Underscore
label_desc: Use image node_id 6 for calling a global function with example usage: test_token_underscore_method() without return types