Checking whether a valid license key file is installed and available is as simple as running
from the command line. If the license key file is not set up correctly, this will return an error. Please see these references:
If you want to test for a valid license key file from within Python or some other programming environment, you may need to construct a Model and run a minimal optimization.