code: def test_missing_sample_ids(spark):
      variant_df = spark.createDataFrame(
          [__construct_row([0, 1]), __construct_row([1, 1])]
      )
      sample_ids = ["a", ""]
      with pytest.raises(Exception):
          wgr_functions.block_variants_and_samples(
              variant_df,
              sample_ids,
              variants_per_block=10,
              sample_block_count=2,
          )
  
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 7 for calling a global function with example usage: test_missing_sample_ids(spark) without return types