code: def test_weave_alkane_max_pairs():
      """Test on simple alkane with max pairs distance cutoff"""
      mols = ["CCC"]
      featurizer = dc.feat.WeaveFeaturizer(max_pair_distance=1)
      # mol_list = featurizer.featurize(mols)
      # mol = mol_list[0]
      from rdkit import Chem
  
      mol = featurizer._featurize(Chem.MolFromSmiles(mols[0]))
  
      # 3 carbonds in alkane
      assert mol.get_num_atoms() == 3
  
      # Test feature sizes
      assert mol.get_num_features() == 75
  
      # Should be a 7x14 interaction grid since there are 7 pairs within graph
      # distance 1 (3 self interactions plus 2 bonds counted twice because of
      # symmetry)
      assert mol.get_pair_features().shape == (7, 14)
  
file_path: deepchem/deepchem/feat/tests/test_weave.py
imports: import numpy
  import deepchem
  from deepchem.feat.graph_features import max_pair_distance_pairs
label_desc: Use image node_id 6 for calling a global function with example usage: test_weave_alkane_max_pairs() without return types