code: def test_model_equal(bento_model):
      # note: models are currently considered to be equal if their tag is equal;
      #       this is a test of that behavior
      eq_to_b = Model.create(
          "tmp",
          module="bar",
          api_version="v1",
          signatures={},
          context=TEST_MODEL_CONTEXT,
      )
      eq_to_b._tag = bento_model._tag  # type: ignore
  
      assert eq_to_b == bento_model
      assert eq_to_b.__hash__() == bento_model.__hash__()
  
imports: from __future__ import annotations
  import os
  from datetime import datetime
  from datetime import timezone
  from sys import version_info
  from typing import TYPE_CHECKING
  import attr
  import fs
  import fs.errors
  import numpy
  import pytest
  from bentoml import Tag
  from bentoml._internal.configuration import BENTOML_VERSION
  from bentoml._internal.models import ModelOptions
  from bentoml._internal.models.model import Model
  from bentoml._internal.models.model import ModelInfo
  from bentoml._internal.models.model import ModelStore
  from bentoml.exceptions import BentoMLException
  from bentoml.testing.pytest import TEST_MODEL_CONTEXT
label_desc: Use image node_id 5 for calling a global function with example usage: test_model_equal(bento_model) without return types