def METHOD_NAME(fgraph, node):
    rng, *other_inputs, n, p = node.inputs
    next_rng, g = gamma.make_node(rng, *other_inputs, n, p / (1 - p)).outputs
    next_rng, p = poisson.make_node(next_rng, *other_inputs, g).outputs
    return [next_rng, p]