'Generate a free module of rank ``rank`` over ``self``.
>>> from sympy.abc import x
>>> from sympy import QQ
>>> QQ.old_poly_ring(x).free_module(2)
QQ[x]**2'

def free_module(self, rank):

    return FreeModulePolyRing(self, rank)
