code: func (c *EndpointConfig) peerMSPID(name string) (string, bool) {
  	var mspID string
  	// Find organisation/msp that peer belongs to
  	for _, org := range c.networkConfig.Organizations {
  		for i := 0; i < len(org.Peers); i++ {
  			if strings.EqualFold(org.Peers[i], name) {
  				// peer belongs to this org add org msp
  				mspID = org.MSPID
  				break
  			} else {
  				peer, ok := c.findMatchingPeer(org.Peers[i])
  				if ok && strings.EqualFold(peer, name) {
  					mspID = org.MSPID
  					break
  				}
  			}
  		}
  	}
  
  	return mspID, mspID != ""
  }
docs: // PeerMSPID returns msp that peer belongs to