def METHOD_NAME(mol_with_subgraph, weight):
    """
    Test normal operation of :func:`average_beads.do_average_bead`.
    """
    result_mol = average_beads.do_average_bead(
        mol_with_subgraph, ignore_missing_graphs=False, weight=weight,
    )
    target_key = 'target {}'.format(weight)
    target_positions = np.stack([node[target_key] for node in mol_with_subgraph.nodes.values()])
    positions = np.stack([node['position'] for node in mol_with_subgraph.nodes.values()])
    assert np.allclose(positions, target_positions, equal_nan=True)