class_docstr: Tests for basics.py
class_docstr_tok: ["Tests","for","basics.py"]
code: def __init__(self, *args, **kwargs):
      super(BasicsTests, self).__init__(*args, **kwargs)
      warnings.simplefilter("module")
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import inspect
  import os
  import warnings
  import unittest
  import numpy
  import networkx
  import pytest
  import torch
  from common import mpi_env_rank_and_size
  import bluefog.torch
  from bluefog.torch import ExponentialGraph, RingGraph, StarGraph, MeshGrid2DGraph, FullyConnectedGraph
  from bluefog.torch import IsTopologyEquivalent, InferDestinationFromSourceRanks, InferSourceFromDestinationRanks
label_desc: Use image node_id 1 to create a new BasicsTests object from inherited base classes: unittest with example: obj = BasicsTests()