<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_param(self, number):
 """ Reads an internal Partner object parameter. """

        logger.debug("retreiving param number %s" % number)
        type_ = snap7.snap7types.param_types[number]
        value = type_()
        code = self.library.Par_GetParam(self.pointer, ctypes.c_int(number),
                                         ctypes.byref(value))
        check_error(code)
        return value.value