DifferentialEquation where the function reads a deterministic variable which changes over time

Is it possible to implement a DifferentialEquation s.t. the function SIR reads a deterministic variable (data) which changes over time?

sir_model = DifferentialEquation(
func=SIR,
times=timeline,
n_states=2,
n_theta=2,
t0=0, )