<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_imported_resource(self, context):
 """Get the imported resource Returns `None` if module was not found. """

        if self.level == 0:
            return context.project.find_module(
                self.module_name, folder=context.folder)
        else:
            return context.project.find_relative_module(
                self.module_name, context.folder, self.level)