code: def to_ordinal(num):
      """Convert an integer to an ordinal string, e.g. 2 -> '2nd'."""
      suffixes = {
          str(i): v
          for i, v in enumerate(
              [
                  "th",
                  "st",
                  "nd",
                  "rd",
                  "th",
                  "th",
                  "th",
                  "th",
                  "th",
                  "th",
              ]
          )
      }
      v = str(num)
      # special case early teens
      if v in {"11", "12", "13"}:
          return v + "th"
      return v + suffixes[v[-1]]
  
imports: from collections import namedtuple
  import matplotlib.pyplot
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: to_ordinal(num) and returns: unknown, unknown