<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_mapping_for_table(self, table):
 """ Returns the first mapping for a table name """

        for mapping in self.mappings.values():
            if mapping["table"] == table:
                return mapping