code: func (c *baseClient) ActivateEngine(ctx context.Context, opts clitypes.EngineInitOptions, out clitypes.OutStream,
  	authConfig *types.AuthConfig) error {
  
  	// If the user didn't specify an image, determine the correct enterprise image to use
  	if opts.EngineImage == "" {
  		localMetadata, err := versions.GetCurrentRuntimeMetadata(opts.RuntimeMetadataDir)
  		if err != nil {
  			return errors.Wrap(err, "unable to determine the installed engine version. Specify which engine image to update with --engine-image")
  		}
  
  		engineImage := localMetadata.EngineImage
  		if engineImage == clitypes.EnterpriseEngineImage || engineImage == clitypes.CommunityEngineImage {
  			opts.EngineImage = clitypes.EnterpriseEngineImage
  		} else {
  			// Chop off the standard prefix and retain any trailing OS specific image details
  			// e.g., engine-community-dm -> engine-enterprise-dm
  			engineImage = strings.TrimPrefix(engineImage, clitypes.EnterpriseEngineImage)
  			engineImage = strings.TrimPrefix(engineImage, clitypes.CommunityEngineImage)
  			opts.EngineImage = clitypes.EnterpriseEngineImage + engineImage
  		}
  	}
  
  	ctx = namespaces.WithNamespace(ctx, engineNamespace)
  	return c.DoUpdate(ctx, opts, out, authConfig)
  }
docs: // ActivateEngine will switch the image from the CE to EE image