docstr: Check that tensorboard channel catches errors when model has
  Inf or NaN weights
code: def test_report_metrics_with_nan(self):
      """Check that tensorboard channel catches errors when model has
      Inf or NaN weights
      """
      tensorboard_channel = TensorBoardChannel()
      # create simple model and optimizers
      model = FCModelWithNanAndInfWts()
  
      optimizer = optim.SGD(model.parameters(), lr=0.1)
      tensorboard_channel.report(
          stage=Stage.TRAIN,
          epoch=1,
          metrics=0.0,
          model_select_metric=0.0,
          loss=1.0,
          preds=[1],
          targets=[1],
          scores=[1],
          context={},
          meta={},
          model=model,
          optimizer=optimizer,
          log_gradient=False,
          gradients={},
      )
  
file_path: pytext/pytext/metric_reporters/tests/tensorboard_test.py
imports: from unittest import TestCase
  from pytext.common.constants import Stage
  from pytext.metric_reporters.channel import TensorBoardChannel
  from torch import nn, optim
label_desc: Use image node_id 1 for calling the TensorboardTest obj's underlying member method code with example usage: obj.test_report_metrics_with_nan() without return types