<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def mkparam(self, method, pdef, object):
 """ Expand list parameters into individual parameters each with the type information. This is because in document arrays are simply multi-occurrence elements. """

        if isinstance(object, (list, tuple)):
            return [self.mkparam(method, pdef, item) for item in object]
        return super(Document, self).mkparam(method, pdef, object)