code: def _get_tokenizer(ds):
      tok = getattr(ds, "tokenizer", None)
      if isinstance(tok, Tokenizer):
          return tok
      if isinstance(tok, (list, L)):
          for t in tok:
              if isinstance(t, Tokenizer):
                  return t
  
imports: from __future__ import annotations
  from ..torch_basics import *
  from ..data.all import *
  from .core import *
label_desc: Use image node_id 4 for calling a global function with example usage: _get_tokenizer(ds) and returns: tok, t