code: def test_bond_vocab_random_mask():
      from deepchem.models.torch_models.grover import GroverModel
      from deepchem.feat.vocabulary_builders import (
          GroverBondVocabularyBuilder,
      )
  
      smiles = np.array(["CC", "CCC"])
      dataset = dc.data.NumpyDataset(X=smiles)
  
      bond_vocab = GroverBondVocabularyBuilder()
      bond_vocab.build(dataset)
  
      vocab_labels = GroverModel.bond_vocab_random_mask(
          bond_vocab, smiles
      )
      assert len(vocab_labels) == 3
  
file_path: deepchem/deepchem/models/torch_models/tests/test_grover.py
imports: import os
  import pytest
  import numpy
  import deepchem
label_desc: Use image node_id 2 for calling a global function with example usage: test_bond_vocab_random_mask() without return types