code: func MockSignedEndorserProposalOrPanic(chainID string, cs *peer.ChaincodeSpec, creator, signature []byte) (*peer.SignedProposal, *peer.Proposal) {
  	prop, _, err := CreateChaincodeProposal(
  		common.HeaderType_ENDORSER_TRANSACTION,
  		chainID,
  		&peer.ChaincodeInvocationSpec{ChaincodeSpec: cs},
  		creator)
  	if err != nil {
  		panic(err)
  	}
  
  	propBytes, err := GetBytesProposal(prop)
  	if err != nil {
  		panic(err)
  	}
  
  	return &peer.SignedProposal{ProposalBytes: propBytes, Signature: signature}, prop
  }
docs: // MockSignedEndorserProposalOrPanic creates a SignedProposal with the
  // passed arguments