code: def test_integration_torch_conversation_blenderbot_400M_input_ids(
      self,
  ):
      tokenizer = AutoTokenizer.from_pretrained(
          "facebook/blenderbot-400M-distill"
      )
      model = AutoModelForSeq2SeqLM.from_pretrained(
          "facebook/blenderbot-400M-distill"
      )
      conversation_agent = ConversationalPipeline(
          model=model, tokenizer=tokenizer
      )
  
      # test1
      conversation_1 = Conversation("hello")
      inputs = conversation_agent.preprocess(conversation_1)
      self.assertEqual(inputs["input_ids"].tolist(), [[1710, 86, 2]])
  
      # test2
      conversation_1 = Conversation(
          "I like lasagne.",
          past_user_inputs=["hello"],
          generated_responses=[
              " Do you like lasagne? It is a traditional Italian dish consisting of a shepherd's pie."
          ],
      )
      inputs = conversation_agent.preprocess(conversation_1)
      self.assertEqual(
          inputs["input_ids"].tolist(),
          [
              # This should be compared with the same conversation on ParlAI `safe_interactive` demo.
              [
                  1710,  # hello
                  86,
                  228,  # Double space
                  228,
                  946,
                  304,
                  398,
                  6881,
                  558,
                  964,
                  38,
                  452,
                  315,
                  265,
                  6252,
                  452,
                  322,
                  968,
                  6884,
                  3146,
                  278,
                  306,
                  265,
                  617,
                  87,
                  388,
                  75,
                  341,
                  286,
                  521,
                  21,
                  228,  # Double space
                  228,
                  281,  # I like lasagne.
                  398,
                  6881,
                  558,
                  964,
                  21,
                  2,  # EOS
              ],
          ],
      )
  
file_path: transformers/tests/pipelines/test_pipelines_conversational.py
imports: import gc
  import unittest
  from transformers import MODEL_FOR_CAUSAL_LM_MAPPING, MODEL_FOR_SEQ_TO_SEQ_CAUSAL_LM_MAPPING, TF_MODEL_FOR_CAUSAL_LM_MAPPING, TF_MODEL_FOR_SEQ_TO_SEQ_CAUSAL_LM_MAPPING, AutoModelForCausalLM, AutoModelForSeq2SeqLM, AutoTokenizer, BlenderbotSmallForConditionalGeneration, BlenderbotSmallTokenizer, Conversation, ConversationalPipeline, TFAutoModelForCausalLM, pipeline
  from transformers.testing_utils import backend_empty_cache, is_pipeline_test, is_torch_available, require_tf, require_torch, slow, torch_device
  from .test_pipelines_common import ANY
label_desc: Use image node_id 10 for calling the ConversationalPipelineTests obj's underlying member method code with example usage: obj.test_integration_torch_conversation_blenderbot_400M_input_ids() without return types