code: def isunitlength(vec):
      """Verify that `vec` is of unit length."""
      assert np.isclose(norm(vec), 1), norm(vec)
  
imports: import numpy
  from numpy.linalg import norm
  import matplotlib.pyplot
label_desc: Use image node_id 8 for calling a global function with example usage: isunitlength(vec) without return types