code: def romanToInt(self, s):
      roman = {
          "I": 1,
          "V": 5,
          "X": 10,
          "L": 50,
          "C": 100,
          "D": 500,
          "M": 1000,
      }
      prev, total = 0, 0
      for c in s:
          curr = roman[c]
          total += curr
          # need to subtract
          if curr > prev:
              total -= 2 * prev
          prev = curr
      return total
  
label_desc: Use image node_id 1 for calling the Solution obj's underlying member method code with example usage: obj.romanToInt(s) and returns: total