Implement a python module to: Given a "path" and a "superclass", find all classes that…
- User
Implement a python module to:
Given a "path" and a "super_class", find all classes that are defined under the given "path" (recursively if directory) that are subclass of given "super_class".
Follow following instructions while implementing above module.
-
Where possible breakdown the task into simpler subtask and implement them separately, eg. as functions.
-
Use descriptive names, short documentations along with the code to show whats going on.
-
Imports can be done in middle if required
-
The module should be self contained (Containing test cases, resources required for the test cases and the actual implementation)
-
If any resources are generated for test cases, cleanup when the testing ends.
-
Use following template for the implementation
name : <appropriate_file_name>.py
""" Short summary of the module """
----- UNIT TESTS ----
...
IMPLEMENTATION
...
if name == 'main': ... # unit tests invocation.
-
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.