code: def test_aliases(self):
      u7, u8, u9, u10 = Session.query(User).order_by(User.id).all()
      ualias = aliased(User)
      q = (
          Session.query(User, ualias)
          .join(ualias, User.id < ualias.id)
          .filter(User.id < 9)
          .order_by(User.id, ualias.id)
      )
      eq_(
          list(q.all()),
          [(u7, u8), (u7, u9), (u7, u10), (u8, u9), (u8, u10)],
      )
      q2 = serializer.loads(
          serializer.dumps(q, -1), users.metadata, Session
      )
      eq_(
          list(q2.all()),
          [(u7, u8), (u7, u9), (u7, u10), (u8, u9), (u8, u10)],
      )
  
imports: from sqlalchemy import desc
  from sqlalchemy import ForeignKey
  from sqlalchemy import func
  from sqlalchemy import Integer
  from sqlalchemy import join
  from sqlalchemy import literal_column
  from sqlalchemy import MetaData
  from sqlalchemy import select
  from sqlalchemy import String
  from sqlalchemy import testing
  from sqlalchemy.ext import serializer
  from sqlalchemy.orm import aliased
  from sqlalchemy.orm import class_mapper
  from sqlalchemy.orm import column_property
  from sqlalchemy.orm import configure_mappers
  from sqlalchemy.orm import joinedload
  from sqlalchemy.orm import relationship
  from sqlalchemy.orm import scoped_session
  from sqlalchemy.orm import sessionmaker
  from sqlalchemy.testing import AssertsCompiledSQL
  from sqlalchemy.testing import eq_
  from sqlalchemy.testing import fixtures
  from sqlalchemy.testing.entities import ComparableEntity
  from sqlalchemy.testing.schema import Column
  from sqlalchemy.testing.schema import Table
label_desc: Use image node_id 14 for calling the SerializeTest obj's underlying member method code with example usage: obj.test_aliases() without return types