code: def convert(self, argument):
      
      if _is_integer_type(argument):
        return argument
      elif isinstance(argument, six.string_types):
        base = 10
        if len(argument) > 2 and argument[0] == '0':
          if argument[1] == 'o':
            base = 8
          elif argument[1] == 'x':
            base = 16
        return int(argument, base)
      else:
        raise TypeError('Expect argument to be a string or int, found {}'.format(
            type(argument)))
docs: Returns the int value of argument.