def get_provider():
global _provider<EOL>if _provider is None:<EOL><INDENT>if sys.platform.startswith('<STR_LIT>'):<EOL><INDENT>from .bluez_dbus.provider import BluezProvider<EOL>_provider = BluezProvider()<EOL><DEDENT>elif sys.platform == '<STR_LIT>':<EOL><INDENT>from .corebluetooth.provider import CoreBluetoothProvider<EOL>_provider = CoreBluetoothProvider()<EOL><DEDENT>else:<EOL><INDENT>raise RuntimeError('<STR_LIT>'.format(sys.platform))<EOL><DEDENT><DEDENT>return _provider<EOL>
Return an instance of the BLE provider for the current platform.