code: def integers(value):
      
      if '.' in value:
          raise ValueError('There are decimal points in %s' % value)
      values = value.replace(',', ' ').split()
      if not values:
          raise ValueError('Not a list of integers: %r' % value)
      try:
          ints = [int(float(v)) for v in values]
      except Exception:
          raise ValueError('Not a list of integers: %r' % value)
      return ints
docs: :param value: input string
      :returns: non-empty list of integers
  
      >>> integers('1, 2')
      [1, 2]
      >>> integers(' ')
      Traceback (most recent call last):
         ...
      ValueError: Not a list of integers: ' '