code: def replace_tokenizer_callback() -> Callable[[Language], Language]:
      def replace_tokenizer(nlp: Language) -> Language:
          nlp.tokenizer = combined_rule_tokenizer(nlp)
          return nlp
  
      return replace_tokenizer
  
file_path: scispacy/scispacy/base_project_code.py
imports: from typing import Optional, Callable, Iterable, Iterator
  from pathlib import Path
  import random
  import itertools
  import spacy
  import warnings
  from spacy.training import Corpus, Example
  from spacy.language import Language
  from scispacy.custom_tokenizer import combined_rule_tokenizer
  from scispacy.data_util import read_full_med_mentions, read_ner_from_tsv
label_desc: Use image node_id 2 for calling a global function with example usage: replace_tokenizer_callback() and returns: replace_tokenizer, nlp