<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def create_mbed_detector(**kwargs):
 """! Factory used to create host OS specific mbed-lstools object :param kwargs: keyword arguments to pass along to the constructors @return Returns MbedLsTools object or None if host OS is not supported """

    host_os = platform.system()
    if host_os == "Windows":
        from .windows import StlinkDetectWindows

        return StlinkDetectWindows(**kwargs)
    elif host_os == "Linux":
        from .linux import StlinkDetectLinuxGeneric

        return StlinkDetectLinuxGeneric(**kwargs)
    elif host_os == "Darwin":
        from .darwin import StlinkDetectDarwin

        return StlinkDetectDarwin(**kwargs)
    else:
        return None