code: def mkpart(self, disk, start, end, part_type='primary'):
          
          args = {
              'disk': disk,
              'start': start,
              'end': end,
              'part_type': part_type,
          }
  
          self._mkpart_chk.check(args)
  
          response = self._client.raw('disk.mkpart', args)
  
          result = response.get()
  
          if result.state != 'SUCCESS':
              raise RuntimeError('failed to create partition: %s' % result.stderr)
docs: Make partition on disk
          :param disk: device path (/dev/sda, /dev/sdb, etc...)
          :param start: partition start as accepted by parted mkpart
          :param end: partition end as accepted by parted mkpart
          :param part_type: partition type as accepted by parted mkpart