code: def __init__(
      self,
      graph,
      ax,
      gravity=1,
      link_distance=20,
      charge=-30,
      node_size=5,
      link_strength=1,
      friction=0.9,
  ):
      self.dict_ = {
          "type": "networkxd3forcelayout",
          "graph": graph,
          "ax_id": mpld3.utils.get_id(ax),
          "gravity": gravity,
          "charge": charge,
          "friction": friction,
          "link_distance": link_distance,
          "link_strength": link_strength,
          "nominal_radius": node_size,
      }
  
imports: import mpld3
  import matplotlib.pyplot
label_desc: Use image node_id 1 to create a new NetworkXD3ForceLayout object from inherited base classes: mpld3.plugins with example: obj = NetworkXD3ForceLayout(graph, ax, gravity, link_distance, charge, node_size, link_strength, friction)