class_docstr: This class tests all member functions of crypten package
class_docstr_tok: ["This","class","tests","all","member","functions","of","crypten","package"]
docstr: Tests that global generator is generated properly
code: def test_global_generator(self):
      """Tests that global generator is generated properly"""
      # Check that all seeds are the same
      for device in crypten.generators["global"].keys():
          this_generator = crypten.generators["global"][
              device
          ].initial_seed()
          generator0 = comm.get().broadcast_obj(this_generator, 0)
          self.assertEqual(this_generator, generator0)
  
imports: import itertools
  import logging
  import math
  import random
  import unittest
  from collections import defaultdict
  import crypten
  import crypten.communicator
  import torch
  import torch.nn.functional
  from crypten.common import serial
  from crypten.common.tensor_types import is_float_tensor
  from crypten.config import cfg
  from test.multiprocess_test_case import get_random_test_tensor, MultiProcessTestCase
  from torch import nn
label_desc: Use image node_id 4 for calling the TestCrypten obj's underlying member method code with example usage: obj.test_global_generator() without return types