code: def get_profile(rhost, assume=True):
      """get the default $PROFILE for a remote host"""
      if rhost in _profiles:
          return _profiles[rhost]
      if assume:
          return default_profile
      return
  
label_desc: Use image node_id 1 for calling a global function with example usage: get_profile(rhost, assume) and returns: _profiles, default_profile