code: def check_input_data(self, args):
      input_data = {}
      if args.input_file:
          if not os.path.exists(args.input_file):
              print("File %s is not exist." % args.input_file)
              raise RuntimeError
          else:
              input_data = txt_parser.parse(
                  args.input_file, use_strip=True
              )
      elif args.text_1 and args.text_2:
          if args.text_1.strip() != "" and args.text_2.strip() != "":
              if six.PY2:
                  input_data = {
                      "text_1": [
                          args.text_1.strip()
                          .decode(sys_stdin_encoding())
                          .decode("utf8")
                      ],
                      "text_2": [
                          args.text_2.strip()
                          .decode(sys_stdin_encoding())
                          .decode("utf8")
                      ],
                  }
              else:
                  input_data = {
                      "text_1": [args.text_1],
                      "text_2": [args.text_2],
                  }
          else:
              print(
                  "ERROR: The input data is inconsistent with expectations."
              )
  
      if input_data == {}:
          print(
              "ERROR: The input data is inconsistent with expectations."
          )
          raise DataFormatError
  
      return input_data
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import argparse
  import ast
  import json
  import math
  import os
  import numpy
  import six
  from paddle.inference import Config
  from paddle.inference import create_predictor
  from simnet_bow.processor import load_vocab
  from simnet_bow.processor import postprocess
  from simnet_bow.processor import preprocess
  import paddlehub
  from paddlehub.common.paddle_helper import add_vars_prefix
  from paddlehub.common.paddle_helper import get_variable_info
  from paddlehub.common.utils import sys_stdin_encoding
  from paddlehub.io.parser import txt_parser
  from paddlehub.module.module import moduleinfo
  from paddlehub.module.module import runnable
  from paddlehub.module.module import serving
label_desc: Use image node_id 11 for calling the SimnetBow obj's underlying member method code with example usage: obj.check_input_data(args) and returns: input_data