code: def test_is_not_numerical_scalar() -> None:
      # Invalid types
      assert not util.is_numerical_scalar("foo")
      assert not util.is_numerical_scalar(np.array("foo"))
      assert not util.is_numerical_scalar(object())
  
      # Invalid shapes
      assert not util.is_numerical_scalar([1])
      assert not util.is_numerical_scalar(np.array([3.14]))
      assert not util.is_numerical_scalar(np.ones(shape=(5, 5)))
  
file_path: determined/harness/tests/test_util.py
imports: import os
  import pathlib
  from typing import Optional
  import numpy
  import pytest
  import determined
  from determined import util
  from tests import filetree
label_desc: Use image node_id 6 for calling a global function with example usage: test_is_not_numerical_scalar() without return types