Details:
- Removed the unused class "Prompt Template" in the __init__.py file.
- This class was not being used and was causing clutter in the codebase.
- The removal improves code readability and maintainability.
- Updated the import statements to only import necessary modules and classes.
- Changed the approach to dynamically import modules and retrieve classes using importlib.
- Added a check for ImportError when importing modules, and if not using generic nodes, skip the module.
- Removed NODE_CLASS_MAPPINGS_GENERIC and NODE_CLASS_MAPPINGS_COMFY dictionaries.
- Updated NODE_CLASS_MAPPINGS with the new mappings and added the old mappings.
- Removed the unused OLD_NODE_CLASS_MAPPINGS dictionary.
- Added a check to remove nodes with None values from NODE_CLASS_MAPPINGS.
- Imported the video node class mappings and updated NODE_CLASS_MAPPINGS with them as well.
- Added comments for clarity.