<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def check(self):

 """Check if dependency is installed"""

        return programs.is_module_installed(self.modname,
                                            self.required_version,
                                            self.installed_version)