code: func (f *MockInfraProvider) CreatePeerFromConfig(peerCfg *fab.NetworkPeer) (fab.Peer, error) {
  	if peerCfg != nil {
  		p := NewMockPeer(peerCfg.MSPID, peerCfg.URL)
  		p.SetMSPID(peerCfg.MSPID)
  
  		return p, nil
  	}
  	return &MockPeer{}, nil
  }
docs: // CreatePeerFromConfig returns a new default implementation of Peer based configuration