code: def has_test_step_override(trainer_module: ReAgentLightningModule):
      """Detect if a subclass of LightningModule has test_step overridden"""
      return (
          type(trainer_module).test_step != pl.LightningModule.test_step
      )
  
imports: import inspect
  import logging
  import pytorch_lightning
  import torch
  from reagent.core.tensorboardX import SummaryWriterContext
  from reagent.core.utils import lazy_property
  from typing_extensions import final
label_desc: Use image node_id 1 for calling a global function with example usage: has_test_step_override(trainer_module) and returns: unknown