code: def test_gemms_true_fp16():
      device = mx.gpu(0)
      input = mx.np.random.uniform(
          size=(1, 512), dtype="float16", device=device
      )
      weights = mx.np.random.uniform(size=(128, 512), device=device)
  
      net = nn.Dense(128, in_units=512, use_bias=False)
      net.cast("float16")
      net.initialize(device=device)
      net.weight.set_data(weights)
  
      with environment("MXNET_FC_TRUE_FP16", "0"):
          ref_results = net(input)
  
      with environment("MXNET_FC_TRUE_FP16", "1"):
          results_trueFP16 = net(input)
  
      atol = 1e-2
      rtol = 1e-2
      assert_almost_equal(
          ref_results.asnumpy(),
          results_trueFP16.asnumpy(),
          atol=atol,
          rtol=rtol,
      )
  
imports: import sys
  import os
  import time
  import random
  import mxnet
  import multiprocessing
  from mxnet.test_utils import check_consistency, set_default_device, assert_almost_equal, rand_ndarray, environment
  import numpy
  import math
  from mxnet import autograd
  import pytest
  from common import assert_raises_cudnn_not_satisfied, run_in_spawned_process, random_seed
  from test_gluon import *
  from test_loss import *
  from test_numpy_loss import *
  from test_gluon_rnn import *
label_desc: Use image node_id 19 for calling a global function with example usage: test_gemms_true_fp16() without return types