human
2.C Define Input Function
Now that you have an estimator and it knows what type of data to expect and how to interpret, you need to actually pass the data to it! This is the job of the input function. 
The input function returns a (features, label) tuple
- features: A python dictionary. Each key is a feature column name and its value is the tensor containing the data for that Feature
- label: A Tensor containing the label column"
Please write code following the instructions in jupyter notebook style.
 ... Write me a code to 2?
assistant
#Here is code to 2.

def generate_input_fn(data_set):
    def input_fn():
      features = {k: tf.constant(data_set[k].values) for k in FEATURES}
      labels = tf.constant(data_set[LABEL].values)
      return features, labels
    return input_fn