Off-policy Evaluation in Doubly Inhomogeneous Environments