code: def toint(self, seq):
      if isinstance(seq, list):
          for i in range(len(seq)):
              try:
                  seq[i] = int(seq[i])
              except ValueError:
                  pass
      else:
          seq = int(seq)
      return seq
  
imports: import os.path
  from .None import colorMap
label_desc: Use image node_id 5 for calling the LabelList obj's underlying member method code with example usage: obj.toint(seq) and returns: seq