This helper function checks if Python is available and if the required Python module (e.g., scipy) is installed.
It stops execution and raises an error if Python or the specified module is not available.
     
    
    Usage
    check_python_and_module(module = "scipy", initialize = TRUE)
 
    
    Arguments
- module
- Character. Name of the Python module to check (default is "scipy"). 
- initialize
- Logical. Whether to initialize Python if not already initialized (default is TRUE). 
 
    
    Value
    This function does not return a value. It stops execution if the required Python environment is not available.
     
    
    Examples
    if (FALSE) { # \dontrun{
check_python_and_module("scipy") # Check for Python and 'scipy'
} # }