code: def test_is_numerical_scalar() -> None:
      assert util.is_numerical_scalar(1)
      assert util.is_numerical_scalar(1.0)
      assert util.is_numerical_scalar(-3.14)
      assert util.is_numerical_scalar(np.ones(shape=()))
      assert util.is_numerical_scalar(np.array(1))
      assert util.is_numerical_scalar(np.array(-3.14))
      assert util.is_numerical_scalar(np.array([1.0])[0])
  
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 7 for calling a global function with example usage: test_is_numerical_scalar() without return types