class_docstr: Group of tests for link_regression() function
docstr: Test the 'ip' binary operator on orthogonal vectors
docstr_tok: ["Test","the","'ip","'","binary","operator","on","orthogonal","vectors"]
code: def test_ip(self):
      """Test the 'ip' binary operator on orthogonal vectors"""
  
      x_src, x_dst = make_orthonormal_vectors(self.d)
      expected = np.dot(x_src, x_dst)
  
      x_src = tf.constant(x_src, shape=(1, self.d), dtype="float64")
      x_dst = tf.constant(x_dst, shape=(1, self.d), dtype="float64")
  
      li = link_regression(edge_embedding_method="ip")([x_src, x_dst])
      print(
          "link regression with 'ip' operator on orthonormal vectors: {}, expected: {}".format(
              li, expected
          )
      )
      assert li.numpy() == pytest.approx(0, abs=1.5e-7)
  
      li = link_regression(edge_embedding_method="ip")([x_src, x_src])
      print("link regression with 'ip' operator on unit vector: ", li)
      assert li.numpy() == pytest.approx(1, abs=1.5e-7)
  
imports: from stellargraph.layer.link_inference import *
  import tensorflow
  from tensorflow import keras
  import numpy
  import pytest
label_desc: Use image node_id 1 for calling the Test_Link_Regression obj's underlying member method code with example usage: obj.test_ip() without return types