code: func (f *ConfigFlags) ToRESTMapper() (meta.RESTMapper, error) {
  	discoveryClient, err := f.ToDiscoveryClient()
  	if err != nil {
  		return nil, err
  	}
  
  	mapper := restmapper.NewDeferredDiscoveryRESTMapper(discoveryClient)
  	expander := restmapper.NewShortcutExpander(mapper, discoveryClient)
  	return expander, nil
  }
docs: // ToRESTMapper returns a mapper.