I have a function as below which return boolean value:
def is_new_records(conn, value): """ Check if value already exists "&qu