docs: def _prepare_for_submission(self, tempfolder, inputdict):
          """
          Create input files.
  
              :param tempfolder: aiida.common.folders.Folder subclass where
                  the plugin should put all its files.
              :param inputdict: dictionary of the input nodes as they would
                  be returned by get_inputs_dict
          """
          parameters, code, structure, surface_sample = \
                  self._validate_inputs(inputdict)
  
          # Prepare CalcInfo to be returned to aiida
          calcinfo = CalcInfo()
          calcinfo.uuid = self.uuid
          calcinfo.local_copy_list = [
              [structure.get_file_abs_path(), structure.filename],
              [surface_sample.get_file_abs_path(), surface_sample.filename],
          ]
          calcinfo.remote_copy_list = []
          calcinfo.retrieve_list = parameters.output_files
  
          codeinfo = CodeInfo()
          # will call ./code.py in.json out.json
          codeinfo.cmdline_params = parameters.cmdline_params(
              structure_file_name=structure.filename,
              surface_sample_file_name=surface_sample.filename)
          codeinfo.code_uuid = code.uuid
          calcinfo.codes_info = [codeinfo]
  
          return calcinfo