code: def test_RelationalGraphConvolution_edge_cases():
      try:
          rgcn_layer = RelationalGraphConvolution(
              units=16,
              num_relationships=5,
              num_bases=0.5,
              activation="relu",
          )
      except TypeError as e:
          error = e
      assert str(error) == "num_bases should be an int"
  
      rgcn_layer = RelationalGraphConvolution(
          units=16, num_relationships=5, num_bases=-1, activation="relu"
      )
      rgcn_layer.build(input_shapes=[(1,)])
      assert rgcn_layer.bases is None
  
      try:
          rgcn_layer = RelationalGraphConvolution(
              units=16,
              num_relationships=0.5,
              num_bases=2,
              activation="relu",
          )
      except TypeError as e:
          error = e
      assert str(error) == "num_relationships should be an int"
  
      try:
          rgcn_layer = RelationalGraphConvolution(
              units=16,
              num_relationships=-1,
              num_bases=2,
              activation="relu",
          )
      except ValueError as e:
          error = e
      assert str(error) == "num_relationships should be positive"
  
      try:
          rgcn_layer = RelationalGraphConvolution(
              units=0.5,
              num_relationships=1,
              num_bases=2,
              activation="relu",
          )
      except TypeError as e:
          error = e
      assert str(error) == "units should be an int"
  
      try:
          rgcn_layer = RelationalGraphConvolution(
              units=-16,
              num_relationships=1,
              num_bases=2,
              activation="relu",
          )
      except ValueError as e:
          error = e
      assert str(error) == "units should be positive"
  
imports: import numpy
  from stellargraph.layer.rgcn import RelationalGraphConvolution, RGCN
  from stellargraph.mapper.full_batch_generators import RelationalFullBatchNodeGenerator
  import pytest
  from scipy import sparse
  from stellargraph.core.utils import normalize_adj
  import tensorflow
  from tensorflow import keras
  from tensorflow.keras import backend
  from tensorflow.keras.layers import Input, Lambda
  from stellargraph import StellarDiGraph, StellarGraph
  from stellargraph.layer.misc import SqueezedSparseConversion
  import pandas
  from ..test_utils.graphs import relational_create_graph_features
  from ..None import test_utils
label_desc: Use image node_id 10 for calling a global function with example usage: test_RelationalGraphConvolution_edge_cases() without return types