how to activate the create type stub feature of pyright 3231

How to Activate the Create Type Stub Feature of PyRight

error command pyrightcreatetypestub already exists

When importing libraries, PyRight creates an initial draft of type stub files for each import. This feature can be invoked from the command palette or by right-clicking in source text. In addition, it can be activated as a quick action when clicking on an error message. Alternatively, you can activate the feature using the command line with the “–createstub” switch.