code: def test_n_bins_func(func, data: np.ndarray):
      n_bins = func(data)
      print(n_bins)
      assert isinstance(n_bins, int), "Output should be an integer."
      assert n_bins > 0, "Number of bins should be positive."
  
imports: import pytest
  from pytest_lazyfixture import lazy_fixture
  from quantus.functions.n_bins_func import *
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: test_n_bins_func(func, data) without return types