code: def _load_diff(args, extra_opts):
      
      try:
          diff = API.load(args.inputs, args.itype,
                          ac_ignore_missing=args.ignore_missing,
                          ac_merge=args.merge,
                          ac_template=args.template,
                          ac_schema=args.schema,
                          **extra_opts)
      except API.UnknownProcessorTypeError:
          _exit_with_output("Wrong input type '%s'" % args.itype, 1)
      except API.UnknownFileTypeError:
          _exit_with_output("No appropriate backend was found for given file "
                            "'%s'" % args.itype, 1)
      _exit_if_load_failure(diff,
                            "Failed to load: args=%s" % ", ".join(args.inputs))
  
      return diff
docs: :param args: :class:`argparse.Namespace` object
      :param extra_opts: Map object given to API.load as extra options