code: def create_mbed_detector(**kwargs):
      
      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
docs: ! 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