code: def _deprecated_test(sg_model):
      with pytest.warns(DeprecationWarning):
          x_in, x_out = sg_model.build()
  
      try:
          if type(sg_model) is not RGCN:
              x_in, x_out = sg_model._node_model()
              with pytest.warns(DeprecationWarning):
                  x_in, x_out = sg_model.node_model()
      except AttributeError:
          pass
  
      try:
          x_in, x_out = sg_model._link_model()
          with pytest.warns(DeprecationWarning):
              x_in, x_out = sg_model.link_model()
      except AttributeError:
          pass
  
file_path: stellargraph/tests/layer/test_misc.py
imports: import tensorflow
  from tensorflow import keras
  import numpy
  import scipy.sparse
  import pytest
  from stellargraph.layer.misc import *
  from ..test_utils.graphs import create_graph_features, example_graph
  from stellargraph.mapper import *
  from stellargraph.layer import *
label_desc: Use image node_id 6 for calling a global function with example usage: _deprecated_test(sg_model) without return types