<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_pyserial_version(self):
 """! Retrieve pyserial module version @return Returns float with pyserial module number """

        pyserial_version = pkg_resources.require("pyserial")[0].version
        version = 3.0
        match = self.re_float.search(pyserial_version)
        if match:
            try:
                version = float(match.group(0))
            except ValueError:
                version = 3.0   # We will assume you've got latest (3.0+)
        return version