def _isbtaddr(address):
<EOL>global _validbtaddr<EOL>if _validbtaddr is None:<EOL><INDENT>import re<EOL>_validbtaddr = re.compile("<STR_LIT>",<EOL>re.IGNORECASE)<EOL><DEDENT>import types<EOL>if not isinstance(address, str):<EOL><INDENT>return False<EOL><DEDENT>return _validbtaddr.match(address) is not None<EOL>
Returns whether the given address is a valid bluetooth address.
For example, "00:0e:6d:7b:a2:0a" is a valid address.

Returns False if the argument is None or is not a string.