code: def get_connected_model_for_table_name(table_name):
      
      for connected_model in get_heroku_connect_models():
          if connected_model.get_heroku_connect_table_name() == table_name:
              return connected_model
      raise LookupError('No connected model found for table %r' % (table_name,))
docs: Return a connected model's table name (which read and written to by Heroku Connect).