code: def test_check_to_tensor_to_numpy(self):
      num_nodes = 5
      dim = 4
      edges = [(0, 1), (1, 2), (3, 4)]
      nfeat = np.random.randn(num_nodes, dim)
      efeat = np.random.randn(len(edges), dim)
  
      g1 = pgl.Graph(
          edges=edges,
          num_nodes=num_nodes,
          node_feat={"nfeat": nfeat},
          edge_feat={"efeat": efeat},
      )
      # check inplace to tensor
      self.assertFalse(g1.is_tensor())
  
      g2 = g1.tensor(inplace=False)
      g3 = g2.numpy(inplace=False)
  
      self.assertFalse(g1.is_tensor())
      self.assertTrue(g2.is_tensor())
      self.assertFalse(g3.is_tensor())
  
imports: import os
  import unittest
  import numpy
  import paddle
  import pgl
  from testsuite import create_random_graph
label_desc: Use image node_id 1 for calling the GraphTest obj's underlying member method code with example usage: obj.test_check_to_tensor_to_numpy() without return types