code: func (osioclient *OSIOClient) GetNamespaceByType(ctx context.Context, userService *app.UserService, namespaceType string) (*app.NamespaceAttributes, error) {
  	if userService == nil {
  		us, err := osioclient.GetUserServices(ctx)
  		if err != nil {
  			return nil, errs.Wrapf(err, "could not retrieve user services")
  		}
  		userService = us
  	}
  	nameSpaces := userService.Attributes.Namespaces
  	for _, ns := range nameSpaces {
  		if *ns.Type == namespaceType {
  			return ns, nil
  		}
  	}
  	return nil, nil
  }
docs: // GetNamespaceByType finds a namespace by type (user, che, stage, etc)
  // if userService is nil, will fetch the user services under the hood