code: def _TestL1Norms(dtype, shape, scale):
      def Test(self):
          np.random.seed(42)
          matrix = (
              np.random.uniform(low=-1.0, high=1.0, size=np.prod(shape))
              .reshape(shape)
              .astype(dtype)
          )
          l1_norm = np.max(np.sum(np.abs(matrix), axis=matrix.ndim - 2))
          matrix /= l1_norm
          self._verifyExponentialReal(scale * matrix)
  
      return Test
  
imports: import itertools
  import numpy
  from tensorflow.python.client import session
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import control_flow_ops
  from tensorflow.python.ops import random_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.ops.linalg import linalg_impl
  from tensorflow.python.platform import benchmark
  from tensorflow.python.platform import test
label_desc: Use image node_id 3 for calling a global function with example usage: _TestL1Norms(dtype, shape, scale) and returns: Test