code: def bond_features(bond):
      bt = bond.GetBondType()
      stereo = int(bond.GetStereo())
      fbond = [
          bt == Chem.rdchem.BondType.SINGLE,
          bt == Chem.rdchem.BondType.DOUBLE,
          bt == Chem.rdchem.BondType.TRIPLE,
          bt == Chem.rdchem.BondType.AROMATIC,
          bond.IsInRing(),
      ]
      fstereo = onek_encoding_unk(stereo, [0, 1, 2, 3, 4, 5])
      return torch.Tensor(fbond + fstereo)
  
imports: import dgl
  import dgl.function
  import rdkit.Chem
  import torch
  import torch.nn
  import torch.nn.functional
  from dgl import line_graph, mean_nodes
  from .chemutils import get_mol
label_desc: Use image node_id 3 for calling a global function with example usage: bond_features(bond) and returns: torch