code: def _csv_to_nodes_dict(nodes_csv):
      
  
      data = []
  
      for row in csv.reader(nodes_csv):
          node = {
              "pm_user": row[2],
              "pm_addr": row[1],
              "pm_password": row[3],
              "pm_type": row[0],
              "mac": [
                  row[4]
              ]
          }
          data.append(node)
  
      return data
docs: Convert CSV to a list of dicts formatted for os_cloud_config
  
      Given a CSV file in the format below, convert it into the
      structure expected by os_could_config JSON files.
  
      pm_type, pm_addr, pm_user, pm_password, mac