code: def test_agg_ndarray_mismatched_dims_raises_fatal_error():
      with pytest.raises(FatalError) as exc:
          mismatched = hl.utils.range_table(5)
          mismatched = mismatched.annotate(
              x=hl.nd.ones((mismatched.idx,))
          )
          mismatched.aggregate(hl.agg.ndarray_sum(mismatched.x))
      assert "Can't sum" in str(exc.value)
  
imports: import math
  import numpy
  import re
  from ..helpers import *
  import pytest
  from hail.utils.java import FatalError, HailUserError
label_desc: Use image node_id 49 for calling a global function with example usage: test_agg_ndarray_mismatched_dims_raises_fatal_error() without return types