code: def test_mapper_general_attributes():
      """
      General tests for the mapper class
      """
      for graph in graphs:
          mapper = _MapperDMPNN(graph)
          assert (mapper.atom_features == graph.node_features).all()
          assert (mapper.bond_features == graph.edge_features).all()
          assert (mapper.bond_index == graph.edge_index).all()
          assert (mapper.global_features == graph.global_features).all()
          concat_feature_dim = (
              graph.num_node_features + graph.num_edge_features
          )
          assert mapper.f_ini_atoms_bonds.shape == (
              graph.num_edges + 1,
              concat_feature_dim,
          )
          assert (
              mapper.f_ini_atoms_bonds[-1]
              == np.zeros(concat_feature_dim)
          ).all()
          assert len(mapper.f_ini_atoms_bonds) == len(mapper.mapping)
          assert (mapper.values[0] == mapper.atom_features).all()
          assert (mapper.values[1] == mapper.f_ini_atoms_bonds).all()
          assert (
              mapper.values[2] == mapper.atom_to_incoming_bonds
          ).all()
          assert (mapper.values[3] == mapper.mapping).all()
          assert (mapper.values[4] == mapper.global_features).all()
  
file_path: deepchem/deepchem/models/tests/test_mapper_dmpnn.py
imports: from deepchem.feat import DMPNNFeaturizer
  import numpy
  import pytest
label_desc: Use image node_id 1 for calling a global function with example usage: test_mapper_general_attributes() without return types