code: func NewCmdImage(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command {
  	o := NewImageOptions(streams)
  
  	cmd := &cobra.Command{
  		Use:                   "image (-f FILENAME | TYPE NAME) CONTAINER_NAME_1=CONTAINER_IMAGE_1 ... CONTAINER_NAME_N=CONTAINER_IMAGE_N",
  		DisableFlagsInUseLine: true,
  		Short:                 i18n.T("Update image of a pod template"),
  		Long:                  imageLong,
  		Example:               imageExample,
  		Run: func(cmd *cobra.Command, args []string) {
  			cmdutil.CheckErr(o.Complete(f, cmd, args))
  			cmdutil.CheckErr(o.Validate())
  			cmdutil.CheckErr(o.Run())
  		},
  	}
  
  	o.PrintFlags.AddFlags(cmd)
  	o.RecordFlags.AddFlags(cmd)
  
  	usage := "identifying the resource to get from a server."
  	cmdutil.AddFilenameOptionFlags(cmd, &o.FilenameOptions, usage)
  	cmd.Flags().BoolVar(&o.All, "all", o.All, "Select all resources, including uninitialized ones, in the namespace of the specified resource types")
  	cmd.Flags().StringVarP(&o.Selector, "selector", "l", o.Selector, "Selector (label query) to filter on, not including uninitialized ones, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2)")
  	cmd.Flags().BoolVar(&o.Local, "local", o.Local, "If true, set image will NOT contact api-server but run locally.")
  	cmdutil.AddDryRunFlag(cmd)
  	cmdutil.AddIncludeUninitializedFlag(cmd)
  	return cmd
  }
docs: // NewCmdImage returns an initialized Command instance for the 'set image' sub command