Fill the variable using the given data
data to use, should have correct shape and type
session to use