<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _detect_available_configs(serial_matcher=None):
 """ Uses the Windows Management Instrumentation to identify serial devices. :param str serial_matcher (optional):
 search string for automatic detection of the device serial """

        if serial_matcher:
            channels = find_serial_devices(serial_matcher)
        else:
            channels = find_serial_devices()

        return [{'interface': 'usb2can', 'channel': c} for c in channels]