docstr: Insert rows as represented by the fixtures() method.
docstr_tok: ["Insert","rows","as","represented","by","the","fixtures","(",")","method","."]
code: def _load_fixtures(cls):
      """Insert rows as represented by the fixtures() method."""
      headers, rows = {}, {}
      for table, data in cls.fixtures().items():
          if len(data) < 2:
              continue
          if isinstance(table, str):
              table = cls.tables[table]
          headers[table] = data[0]
          rows[table] = data[1:]
      for table, fks in sort_tables_and_constraints(
          cls._tables_metadata.tables.values()
      ):
          if table is None:
              continue
          if table not in headers:
              continue
          with cls.bind.begin() as conn:
              conn.execute(
                  table.insert(),
                  [
                      dict(zip(headers[table], column_values))
                      for column_values in rows[table]
                  ],
              )
  
imports: from __future__ import annotations
  import itertools
  import random
  import re
  import sys
  import sqlalchemy
  from .base import TestBase
  from ..None import config
  from ..None import mock
  from ..assertions import eq_
  from ..assertions import ne_
  from ..util import adict
  from ..util import drop_all_tables_from_metadata
  from ...None import event
  from ...None import util
  from ...schema import sort_tables_and_constraints
  from ...sql import visitors
  from ...sql.elements import ClauseElement
label_desc: Use image node_id 18 for calling the TablesTest obj's underlying member method code with example usage: obj._load_fixtures(cls) without return types