code: def tensor_N(shape, dtype=float):
      numel = np.prod(shape)
      x = (np.arange(numel, dtype=dtype)).reshape(shape)
      return x
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  from tensorboardX import summary
  from .expect_reader import compare_proto, write_proto
  import numpy
  import pytest
  import unittest
  import torch
label_desc: Use image node_id 1 for calling a global function with example usage: tensor_N(shape, dtype) and returns: x