docs: def _unicode(ctx, text):
      """
      Returns a numeric code for the first character in a text string
      """
      text = conversions.to_string(text, ctx)
      if len(text) == 0:
          raise ValueError("Text can't be empty")
      return ord(text[0])