<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_resource_key(self):
 """Return canonical resource key, usually the DB table name."""

        model = self.get_model()
        if model:
            return get_model_table(model)
        else:
            return self.get_name()