def METHOD_NAME(cls, variant_id, lines_info):
    """Return line id by using provided variantId parameter."""
    if not lines_info:
        return
    line_info = list(
        filter(
            lambda x: (x.variant and x.variant.pk == int(variant_id)), lines_info
        )
    )
    if not line_info or len(line_info) > 1:
        return
    return str(line_info[0].line.id)