class_docstr: Courier font.
class_docstr_tok: ["Courier","font","."]
code: def text_encode(self, text: str) -> bytes:
      return text.encode("pdfdoc", errors="ignore")
  
imports: from __future__ import annotations
  import logging
  import unicodedata
  import zlib
  from importlib.resources import files
  from pikepdf import Dictionary, Name, Pdf
  from pikepdf.canvas import Font
label_desc: Use image node_id 2 for calling the Courier obj's underlying member method code with example usage: obj.text_encode(text) and returns: text