def METHOD_NAME(self):
    my_callgraph, nodes = _a_graph_and_its_nodes()
    # Let's imagine a node (0x42), not a function entry point, not in my_callgraph, such as:
    # 1 -> 0x42, 0x42 -> 2
    transitions = {nodes[0]: [nodes[1]], nodes[1]: [0x42], 0x42: [nodes[2]]}
    cfg_slice_to_sink = CFGSliceToSink(None, transitions)
    sliced_callgraph = slice_callgraph(my_callgraph, cfg_slice_to_sink)
    self.assertEqual(len(my_callgraph.nodes), 3)
    self.assertEqual(len(my_callgraph.edges), 2)
    self.assertEqual(my_callgraph, sliced_callgraph)