code: def test_int_init_error() -> None:
      # Empty distributions cannot be instantiated.
      with pytest.raises(ValueError):
          distributions.IntDistribution(low=123, high=100)
  
      with pytest.raises(ValueError):
          distributions.IntDistribution(low=100, high=10, log=True)
  
      with pytest.raises(ValueError):
          distributions.IntDistribution(low=123, high=100, step=2)
  
      # 'step' must be 1 when 'log' is True.
      with pytest.raises(ValueError):
          distributions.IntDistribution(
              low=1, high=100, log=True, step=2
          )
  
      # 'step' should be positive.
      with pytest.raises(ValueError):
          distributions.IntDistribution(low=1, high=100, step=0)
  
      with pytest.raises(ValueError):
          distributions.IntDistribution(low=1, high=10, step=-1)
  
imports: import copy
  import json
  from typing import Any
  from typing import cast
  from typing import Dict
  from typing import Optional
  import warnings
  import numpy
  import pytest
  from optuna import distributions
label_desc: Use image node_id 22 for calling a global function with example usage: test_int_init_error() without return types