def insertone_query(tablename, objects):
    """
    Function to process the query for insert one  process
    """
    if isinstance(tablename, str):
        pass
    else:
        raise ValueError('Tablename should be a String')
    cols = ''
    for i in tuple(objects.keys()):
        cols += str(i) + ','
    cols = '(' + cols[:len(cols) - 1] + ')'
    if len(objects) == 1:
        if isinstance(list(objects.values())[0], str):
            val = "('" + str(tuple(objects.values())[0]) + "')"
        else:
            val = '(' + str(tuple(objects.values())[0]) + ')'
    else:
        val = str(tuple(objects.values()))
    query = 'INSERT INTO ' + tablename + cols + ' values' + val
    return query
