code: def _get_mapping_for_table(self, table):
          
          for mapping in self.mappings.values():
              if mapping["table"] == table:
                  return mapping
docs: Returns the first mapping for a table name