code: def test_inconsistent_num_values(spark):
      variant_df = spark.createDataFrame(
          [__construct_row([0, 1, 1]), __construct_row([1, 2])]
      )
      sample_ids = ["a", "b", "c"]
      block_df, index_map = wgr_functions.block_variants_and_samples(
          variant_df,
          sample_ids,
          variants_per_block=10,
          sample_block_count=2,
      )
      with pytest.raises(Exception):
          block_df.collect()
  
file_path: glow/python/glow/wgr/tests/test_block_variants_and_samples.py
imports: from glow import glow
  from glow.wgr import wgr_functions
  import pytest
  from pyspark.sql import Row
  from pyspark.sql.functions import expr
  from pyspark.sql.utils import AnalysisException
label_desc: Use image node_id 5 for calling a global function with example usage: test_inconsistent_num_values(spark) without return types