code: def mktable(self, disk, table_type='gpt'):
          
          args = {
              'disk': disk,
              'table_type': table_type,
          }
  
          self._mktable_chk.check(args)
  
          response = self._client.raw('disk.mktable', args)
  
          result = response.get()
  
          if result.state != 'SUCCESS':
              raise RuntimeError('failed to create table: %s' % result.stderr)
docs: Make partition table on block device.
          :param disk: device path (/dev/sda, /dev/disk/by-id/ata-Samsung..., etc...)
          :param table_type: Partition table type as accepted by parted