code: def _get_text_vocab(dls):
      vocab = dls.vocab
      if isinstance(vocab, L):
          vocab = vocab[0]
      return vocab
  
imports: from __future__ import annotations
  from ..basics import *
  from .core import *
  from .data import *
  from .models.core import *
  from .models.awdlstm import *
  from ..callback.rnn import *
  from ..callback.progress import *
  from .models.core import _model_meta
label_desc: Use image node_id 8 for calling a global function with example usage: _get_text_vocab(dls) and returns: vocab