code: def _get_ips(networks):
      '''
      Helper function for list_nodes. Returns public and private ip lists based on a
      given network dictionary.
      '''
      v4s = networks.get('v4')
      v6s = networks.get('v6')
      public_ips = []
      private_ips = []
  
      if v4s:
          for item in v4s:
              ip_type = item.get('type')
              ip_address = item.get('ip_address')
              if ip_type == 'public':
                  public_ips.append(ip_address)
              if ip_type == 'private':
                  private_ips.append(ip_address)
  
      if v6s:
          for item in v6s:
              ip_type = item.get('type')
              ip_address = item.get('ip_address')
              if ip_type == 'public':
                  public_ips.append(ip_address)
              if ip_type == 'private':
                  private_ips.append(ip_address)
  
      return public_ips, private_ipf _get_ips(networks):
      '''
      Helper function for list_nodes. Returns public and private ip lists based on a
      given network dictionary.
      '''
      v4s = networks.get('v4')
      v6s = networks.get('v6')
      public_ips = []
      private_ips = []
  
      if v4s:
          for item in v4s:
              ip_type = item.get('type')
              ip_address = item.get('ip_address')
              if ip_type == 'public':
                  public_ips.append(ip_address)
              if ip_type == 'private':
                  private_ips.append(ip_address)
  
      if v6s:
          for item in v6s:
              ip_type = item.get('type')
              ip_address = item.get('ip_address')
              if ip_type == 'public':
                  public_ips.append(ip_address)
              if ip_type == 'private':
                  private_ips.append(ip_address)
  
      return public_ips, private_ips
docs: Helper function for list_nodes. Returns public and private ip lists based on a
      given network dictionary.