class_docstr: DistGraphTest
      
code: def test_random_sample_nodes(self):
      g_u_nodes = [98, 97, 96, 7, 59, 47, 39, 37, 34, 17]
  
      g_t_nodes = [
          211,
          333,
          222,
          121,
          234,
          48,
          113,
          145,
          111,
          247,
          45,
          112,
          122,
          131,
          191,
      ]
  
      node_type = "u"
      size = 0
      nodes = self.c1.random_sample_nodes(node_type, size)
      self.assertEqual(nodes, [])
  
      node_type = "u"
      size = 100
      nodes = self.c1.random_sample_nodes(node_type, size)
      self.assertEqual(set(nodes) | set(g_u_nodes), set(g_u_nodes))
      self.assertEqual(len(set(nodes)), len(nodes))
  
      node_type = "u"
      size = 3
      nodes = self.c1.random_sample_nodes(node_type, size)
      self.assertEqual(set(nodes) | set(g_u_nodes), set(g_u_nodes))
      self.assertEqual(len(set(nodes)), len(nodes))
  
      node_type = "t"
      size = 3
      nodes = self.c1.random_sample_nodes(node_type, size)
      self.assertEqual(set(nodes) | set(g_t_nodes), set(g_t_nodes))
      self.assertEqual(len(set(nodes)), len(nodes))
  
      node_type = "t"
      size = 300
      nodes = self.c1.random_sample_nodes(node_type, size)
      self.assertEqual(set(nodes) | set(g_t_nodes), set(g_t_nodes))
      self.assertEqual(len(set(nodes)), len(nodes))
  
imports: import os
  import sys
  import re
  import time
  import tqdm
  import argparse
  import unittest
  import shutil
  import numpy
  from collections import defaultdict
  from pgl.utils.logger import log
  from pgl.distributed import DistGraphClient, DistGraphServer
label_desc: Use image node_id 2 for calling the DistGraphTest obj's underlying member method code with example usage: obj.test_random_sample_nodes() without return types