docstr: test #9739, #9808 (similar to #9701).
  
  this tests insertmanyvalues in conjunction with various datatypes.
  
  These tests are particularly for the asyncpg driver which needs
  most types to be explicitly cast for the new IMV format
docstr_tok: ["test","#","9739",",","#","9808","(","similar","to","#","9701",")",".","this","tests","insertmanyvalues","in","conjunction","with","various","datatypes",".","These","tests","are","particularly","for","the","asyncpg","driver","which","needs","most","types","to","be","explicitly","cast","for","the","new","IMV","format"]
code: def test_imv_returning_datatypes(
      self,
      connection,
      metadata,
      sort_by_parameter_order,
      type_,
      value,
      multiple_rows,
  ):
      """test #9739, #9808 (similar to #9701).
  
      this tests insertmanyvalues in conjunction with various datatypes.
  
      These tests are particularly for the asyncpg driver which needs
      most types to be explicitly cast for the new IMV format
  
      """
      t = Table(
          "d_t",
          metadata,
          Column("id", Integer, Identity(), primary_key=True),
          Column("value", type_),
      )
  
      t.create(connection)
  
      result = connection.execute(
          t.insert().returning(
              t.c.id,
              t.c.value,
              sort_by_parameter_order=bool(sort_by_parameter_order),
          ),
          [{"value": value} for i in range(10)]
          if multiple_rows
          else {"value": value},
      )
  
      if multiple_rows:
          i_range = range(1, 11)
      else:
          i_range = range(1, 2)
  
      eq_(
          set(result),
          {(id_, value) for id_ in i_range},
      )
  
      eq_(
          set(connection.scalars(select(t.c.value))),
          {value},
      )
  
imports: from decimal import Decimal
  import uuid
  from .None import testing
  from ..None import fixtures
  from ..assertions import eq_
  from ..config import requirements
  from ..schema import Column
  from ..schema import Table
  from ...None import Double
  from ...None import Float
  from ...None import Identity
  from ...None import Integer
  from ...None import literal
  from ...None import literal_column
  from ...None import Numeric
  from ...None import select
  from ...None import String
  from ...types import LargeBinary
  from ...types import UUID
  from ...types import Uuid
label_desc: Use image node_id 9 for calling the ReturningTest obj's underlying member method code with example usage: obj.test_imv_returning_datatypes(connection, metadata, sort_by_parameter_order, type_, value, multiple_rows) without return types