code: def test_cat_matches_widest(self):
      shape = self.b
      ys = [torch.randn(shape, dtype=torch.half) for _ in range(5)]
      x_float = torch.randn(shape)
      out = torch.cat(ys + [x_float])
      self.assertEqual(out.type(), FLOAT)
      x_half = torch.randn(shape, dtype=torch.half)
      out = torch.cat(ys + [x_half])
      self.assertEqual(out.type(), HALF)
  
file_path: apex/tests/L0/run_amp/test_promotion.py
imports: import unittest
  import itertools
  from apex import amp
  import torch
  from torch import nn
  import torch.nn.functional
  from utils import common_init, HALF, FLOAT, DTYPES
label_desc: Use image node_id 6 for calling the TestPromotion obj's underlying member method code with example usage: obj.test_cat_matches_widest() without return types