class_docstr: Tests create_input_fn
class_docstr_tok: ["Tests","create_input_fn"]
docstr: Helper function to test create_input_fn with keyword arguments
docstr_tok: ["Helper","function","to","test","create_input_fn","with","keyword","arguments"]
code: def _test_with_args(self, **kwargs):
      """Helper function to test create_input_fn with keyword arguments"""
      sources_file, targets_file = test_utils.create_temp_parallel_data(
          sources=["Hello World ."], targets=["Goodbye ."]
      )
  
      pipeline = input_pipeline.ParallelTextInputPipeline(
          params={
              "source_files": [sources_file.name],
              "target_files": [targets_file.name],
          },
          mode=tf.contrib.learn.ModeKeys.TRAIN,
      )
      input_fn = training_utils.create_input_fn(
          pipeline=pipeline, **kwargs
      )
      features, labels = input_fn()
  
      with self.test_session() as sess:
          with tf.contrib.slim.queues.QueueRunners(sess):
              features_, labels_ = sess.run([features, labels])
  
      self.assertEqual(
          set(features_.keys()), set(["source_tokens", "source_len"])
      )
      self.assertEqual(
          set(labels_.keys()), set(["target_tokens", "target_len"])
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import tempfile
  import tensorflow
  import numpy
  from seq2seq.contrib import rnn_cell
  from seq2seq.data import input_pipeline
  from seq2seq.test import utils
  from seq2seq.training import utils
label_desc: Use image node_id 1 for calling the TestInputFn obj's underlying member method code with example usage: obj._test_with_args() without return types