def calculate_resistivity(T, L_wire, rho, alpha, **kwargs):
    """
    Temperature dependent resistivity model.
    Args:
        T: Temperature of wire (K)
        L_wire: Length of wire (cm)
        rho: Resistivity (Ohms*cm)
        alpha: Reference resistance coefficient
        **kwargs: Catch unused arguments

    Returns:
        Resistance (Ohms)l
    """

    L_wire, rho_0, alpha = L_wire[0], rho[0], alpha[0]

    T_ref = 293.15  # 20 deg C Reference temperature for rho
    delta_T = T - T_ref

    rho_s = rho_0 * L_wire
    rho_t = rho_s * (1 + alpha * delta_T)

    return rho_t