code: def test_build():
      model = ScoringBasedEmbeddingModel(k=3, eta=1)
      model.compile(optimizer="adam", loss="pairwise")
  
      with pytest.raises(
          TypeError,
          match="Not enough arguments to build Encoding Layer. Please set max_ent_size property.",
      ):
          model.encoding_layer.build((10, 10))
  
      try:
          model.encoding_layer.max_ent_size = 10
          model.encoding_layer.max_rel_size = 2
          model.encoding_layer.build((10, 10))
      except TypeError:
          pytest.fail(
              "Encoding layer should build if ent size and rel sizes are set"
          )
  
      assert (
          model.encoding_layer.max_ent_size == 10
      ), "EmbeddingLookupLayer: Max ent size doesn't match"
      assert (
          model.encoding_layer.max_rel_size == 2
      ), "EmbeddingLookupLayer: Max rel size doesn't match"
  
file_path: AmpliGraph/tests/ampligraph/latent_features/layers/encoding/test_EmbeddingLookupLayer.py
imports: from ampligraph.latent_features.layers.encoding import EmbeddingLookupLayer
  from ampligraph.latent_features import ScoringBasedEmbeddingModel
  import pytest
  import tensorflow
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: test_build() without return types