human
Complete this python program:
def get_experiment_fn(train_input_fn, eval_input_fn, train_steps, eval_steps, train_hooks):
assistant
#Here is the Python program you requested.

    """Returns an Experiment function.
    Experiments perform training on several workers in parallel,
    in other words experiments know how to invoke train and eval in a sensible
    fashion for distributed training.
    """
    def _experiment_fn(run_config, hparams):
        'Returns    an    Experiment.'
        del hparams
        classifier = tf.estimator.Estimator(model_fn=_resnet_model_fn, config=run_config)
        experiment = tf.contrib.learn.Experiment(classifier, train_input_fn=train_input_fn, eval_input_fn=eval_input_fn, train_steps=train_steps, eval_steps=eval_steps)
        experiment.extend_train_hooks(train_hooks)
        return experiment
    return _experiment_fn