code: def compare_all(tensor: torch.Tensor, meta_tensor: torch.Tensor):
      assert (
          tensor.shape == meta_tensor.shape
      ), f"the shape of tensor ({tensor.shape}) and meta tensor ({meta_tensor.shape}) does not match."
      assert (
          tensor.dtype == meta_tensor.dtype
      ), f"the dtype of tensor ({tensor.dtype}) and meta tensor ({meta_tensor.dtype}) does not match."
      assert (
          tensor.stride() == meta_tensor.stride()
      ), f"the stride of tensor ({tensor.stride()}) and meta tensor ({meta_tensor.stride()}) does not match."
  
file_path: colossalai/tests/test_analyzer/test_subclasses/test_meta_mode.py
imports: import pytest
  import torch
  import torchvision.models
  from packaging import version
  from colossalai.testing import clear_cache_before_run, parameterize
  from tests.test_analyzer.test_fx.zoo import tm_models, tmm_models
label_desc: Use image node_id 1 for calling a global function with example usage: compare_all(tensor, meta_tensor) without return types