Target_idx in rgcn mini batch training

I am trying to use rgcn mini batch, but I found that one argument target_idx in NeighborSampler class is not very clear in this script. (I am trying to train a heterogenous graph with one type of node and 2 types of edges.) I am wondering could you please explain how to get the target_idx? Thanks!