code: def tokenize1(text, tok, **kwargs):
      "Call `TokenizeWithRules` with a single text"
      return first(TokenizeWithRules(tok=tok, **kwargs)([text]))
  
imports: from __future__ import annotations
  from ..torch_basics import *
  from ..data.all import *
  import html
label_desc: Use image node_id 10 for calling a global function with example usage: tokenize1(text, tok) and returns: first