def SplitNetworkNameSecurity(network):
  try:
    name, security = network.split('$')
    security = security.upper()
    if security not in _SECURITY_TYPES:
      security = 'OPEN'
  except ValueError:
    name = network
    security = 'OPEN'
  return name, security
Splits a network name from it's security type.
dataset/ETHPy150Open google/macops/gmacpyutil/gmacpyutil/wifi_network_order.py/SplitNetworkNameSecurity