docstr: Test timing in fit
docstr_tok: ["Test","timing","in","fit"]
code: def test_fit_timing(self) -> None:
      """
      Test timing in fit
      """
  
      input_dim = 2
      dataset_len = 10
      batch_size = 2
      max_steps_per_epoch = 1
      max_epochs = 1
      evaluate_every_n_epochs = 1
  
      dataloader = generate_random_dataloader(
          dataset_len, input_dim, batch_size
      )
      timer = Timer()
      fit(
          DummyFitUnit(input_dim=input_dim),
          train_dataloader=dataloader,
          eval_dataloader=dataloader,
          max_train_steps_per_epoch=max_steps_per_epoch,
          max_epochs=max_epochs,
          evaluate_every_n_epochs=evaluate_every_n_epochs,
          timer=timer,
      )
      self.assertIn(
          "train.next(data_iter)", timer.recorded_durations.keys()
      )
      self.assertIn(
          "evaluate.next(data_iter)", timer.recorded_durations.keys()
      )
  
imports: import math
  import unittest
  from typing import Tuple
  from unittest.mock import MagicMock
  import torch
  from torch import nn
  from torchtnt.framework._test_utils import DummyFitUnit, generate_random_dataloader
  from torchtnt.framework.callback import Callback
  from torchtnt.framework.fit import fit
  from torchtnt.framework.state import ActivePhase, State
  from torchtnt.framework.unit import EvalUnit, TrainUnit, TTrainUnit
  from torchtnt.utils.timer import Timer
label_desc: Use image node_id 7 for calling the FitTest obj's underlying member method code with example usage: obj.test_fit_timing() without return types