def METHOD_NAME(self, weights):
    """A recordset of products without any specific uom.
    It means : no uom or kg or unit
    Params:
        weights: recordset will be size of weights and each
            product will get a size according of weights[i]
    """
    kg_id = self.env.ref("uom.product_uom_kgm").id
    unit_id = self.env.ref("uom.product_uom_unit").id
    products = self.env["product.product"].search(
        [["uom_id", "in", (False, kg_id, unit_id)]], limit=len(weights)
    )
    for idx, product in enumerate(products):
        # by default there is no weight on products
        product.weight = weights[idx]
    return products