code: def test_discrete_entropy(array_data, n_bins):
      a, x = array_data
      result = discrete_entropy(a, x, n_bins=n_bins)
      assert isinstance(result, float), "Output should be a float."
  
imports: import pytest
  import numpy
  from quantus.functions.complexity_func import entropy, gini_coeffiient, discrete_entropy
label_desc: Use image node_id 4 for calling a global function with example usage: test_discrete_entropy(array_data, n_bins) without return types