class_docstr: Tests of FullBatchNodeGenerator class
class_docstr_tok: ["Tests","of","FullBatchNodeGenerator","class"]
code: def test_weighted(self):
      G, _ = create_graph_features(edge_weights=True)
      generator = RelationalFullBatchNodeGenerator(
          G, weighted=True, transform=lambda f, A: (f, A)
      )
      np.testing.assert_array_equal(
          generator.As[0].todense(),
          [[0, 2.0, 0], [2.0, 0, 0.5], [0, 0.5, 0]],
      )
      np.testing.assert_array_equal(
          generator.As[1].todense(),
          [[0, 0.0, 1.0], [0.0, 0, 0.0], [1.0, 0.0, 0]],
      )
  
imports: from stellargraph.core.graph import *
  from stellargraph.mapper.full_batch_generators import RelationalFullBatchNodeGenerator
  import networkx
  import numpy
  import pytest
  import pandas
  import scipy.sparse
  from ..test_utils.graphs import relational_create_graph_features, example_hin_1
label_desc: Use image node_id 12 for calling the Test_RelationalFullBatchNodeGenerator obj's underlying member method code with example usage: obj.test_weighted() without return types