code: def _clear_caches():
      """
      Clears in-memory transformer and tokenizer caches.
      """
      global _model_cache
      global _tokenizer_cache
      _model_cache.clear()
      _tokenizer_cache.clear()
  
file_path: allennlp/allennlp/common/cached_transformers.py
imports: import logging
  import re
  import warnings
  from typing import Dict, NamedTuple, Optional, Tuple, Union, cast
  import transformers
  from allennlp.common.checks import ConfigurationError
  from transformers import AutoConfig, AutoModel
label_desc: Use image node_id 3 for calling a global function with example usage: _clear_caches() without return types