code: def remove_im_params(model, im):
      
      for param in model.parameters:
          # If the node doesn't exist e.g., it may have already been removed),
          # skip over the parameter without error
          try:
              im.remove_node(param.name)
          except:
              pass
docs: Remove parameter nodes from the influence map.
  
      Parameters
      ----------
      model : pysb.core.Model
          PySB model.
      im : networkx.MultiDiGraph
          Influence map.
  
      Returns
      -------
      networkx.MultiDiGraph
          Influence map with the parameter nodes removed.