code: def test_reproduce_fit_bin_class(self):
      X, y = datasets.make_classification(
          n_samples=100,
          n_features=5,
          n_informative=4,
          n_redundant=1,
          n_classes=2,
          n_clusters_per_class=3,
          n_repeated=0,
          shuffle=False,
          random_state=0,
      )
      metric = Metric({"name": "logloss"})
      prev_loss = None
      for _ in range(3):
          model = BaselineClassifierAlgorithm(
              {"ml_task": "binary_classification"}
          )
          model.fit(X, y)
          y_predicted = model.predict(X)
          loss = metric(y, y_predicted)
          if prev_loss is not None:
              assert_almost_equal(prev_loss, loss)
          prev_loss = loss
  
file_path: mljar-supervised/tests/tests_algorithms/test_baseline.py
imports: import unittest
  import tempfile
  import json
  import numpy
  import os
  import pandas
  from numpy.testing import assert_almost_equal
  from sklearn import datasets
  from supervised.algorithms.baseline import BaselineClassifierAlgorithm, BaselineRegressorAlgorithm
  from supervised.utils.metric import Metric
  import tempfile
label_desc: Use image node_id 3 for calling the BaselineTest obj's underlying member method code with example usage: obj.test_reproduce_fit_bin_class() without return types