code: def _to_int(x):
      # Some AFM files have floats where we are expecting ints -- there is
      # probably a better way to handle this (support floats, round rather than
      # truncate).  But I don't know what the best approach is now and this
      # change to _to_int should at least prevent Matplotlib from crashing on
      # these.  JDH (2009-11-06)
      return int(float(x))
  
imports: from collections import namedtuple
  import logging
  import re
  from ._mathtext_data import uni2type1
label_desc: Use image node_id 1 for calling a global function with example usage: _to_int(x) and returns: int