code: def test_only_count(self, graph, zero_inflation_pct):
      df = sem_generator(
          graph,
          default_type="count",
          n_samples=1000,
          distributions={"count": zero_inflation_pct},
          seed=43,
      )
      # count puts a lower bound on the output:
      assert np.all(df.min() >= 0)
  
      # zero inflation puts a lower bound on the zero-share
      assert np.all((df == 0).mean() >= zero_inflation_pct)
  
imports: import operator
  from typing import Hashable, Tuple, Union
  import networkx
  import numpy
  import pandas
  import pytest
  from networkx.algorithms.dag import is_directed_acyclic_graph
  from sklearn.gaussian_process.kernels import RBF
  from causalnex.structure.data_generators.core import _sample_binary_from_latent, _sample_count_from_latent, _sample_poisson, generate_structure, nonlinear_sem_generator, sem_generator
  from causalnex.structure.structuremodel import StructureModel
label_desc: Use image node_id 1 for calling the TestCountGenerator obj's underlying member method code with example usage: obj.test_only_count(graph, zero_inflation_pct) without return types