code: def check(n, sampled, samples):
      d = diff(sampled)
      diffs = set(d)
      if len(sampled) < 2:
          return
      assert len(diffs) == 1
      assert len(sampled) == n or (
          len(sampled) >= samples and len(sampled) <= samples * 3
      )
  
imports: import wandb
label_desc: Use image node_id 3 for calling a global function with example usage: check(n, sampled, samples) without return types