code: func orderersFromChannel(ctx context.Client, channelID string) ([]fab.Orderer, error) {
  
  	chNetworkConfig := ctx.EndpointConfig().ChannelConfig(channelID)
  	orderers := []fab.Orderer{}
  	for _, chOrderer := range chNetworkConfig.Orderers {
  
  		ordererConfig, found := ctx.EndpointConfig().OrdererConfig(chOrderer)
  		if !found {
  			//continue if given channel orderer not found in endpoint config
  			continue
  		}
  
  		orderer, err := ctx.InfraProvider().CreateOrdererFromConfig(ordererConfig)
  		if err != nil {
  			return nil, errors.WithMessage(err, "failed to create orderer from config")
  		}
  
  		orderers = append(orderers, orderer)
  	}
  	return orderers, nil
  }
docs: //deprecated
  //orderersFromChannel returns list of fab.Orderer by channel id
  //will return empty list when orderers are not found in endpoint config