code: def get_flowcost_from_flowdict(G, flowDict):
      """Returns flow cost calculated from flow dictionary"""
      flowCost = 0
      for u in flowDict:
          for v in flowDict[u]:
              flowCost += flowDict[u][v] * G[u][v]["weight"]
      return flowCost
  
imports: import bz2
  import importlib.resources
  import os
  import pickle
  import pytest
  import networkx
label_desc: Use image node_id 3 for calling a global function with example usage: get_flowcost_from_flowdict(G, flowDict) and returns: flowCost