code: def get_platform():
      
      plat = platform_detect.platform_detect()
      if plat == platform_detect.RASPBERRY_PI:
          # Check for version 1 or 2 of the pi.
          version = platform_detect.pi_version()
          if version == 1:
              from . import Raspberry_Pi
              return Raspberry_Pi
          elif version == 2:
              from . import Raspberry_Pi_2
              return Raspberry_Pi_2
          elif version == 3:
              """Use Pi 2 driver even though running on Pi 3"""
              from . import Raspberry_Pi_2
              return Raspberry_Pi_2
          else:
              raise RuntimeError('No driver for detected Raspberry Pi version available!')
      elif plat == platform_detect.BEAGLEBONE_BLACK:
          from . import Beaglebone_Black
          return Beaglebone_Black
      else:
          raise RuntimeError('Unknown platform.')
docs: Return a DHT platform interface for the currently detected platform.