code: def atlas_peer_is_whitelisted( peer_hostport, peer_table=None ):
      
      ret = None
      with AtlasPeerTableLocked(peer_table) as ptbl:
          if peer_hostport not in ptbl.keys():
              return None 
  
          ret = ptbl[peer_hostport].get("whitelisted", False)
  
      return ret
docs: Is a peer whitelisted