code: def deserialize_long(attr):
          
          if isinstance(attr, ET.Element):
              attr = attr.text
          return _long_type(attr)
docs: Deserialize string into long (Py2) or int (Py3).
  
          :param str attr: response string to be deserialized.
          :rtype: long or int
          :raises: ValueError if string format invalid.