code: def _get_members_in_different_name(
      cls: Type[Callback], phase: str
  ) -> Set[str]:
      # retrieve Callback in different phases, including: train, predict, fit, eval
      return {
          h
          for h, _ in getmembers(cls, predicate=isfunction)
          if phase in h and (not h.startswith("_"))
      }
  
imports: import unittest
  from functools import partial
  from inspect import getmembers, isfunction
  from typing import Any, Set, Tuple, Type
  import torch
  from torchtnt.framework._test_utils import DummyEvalUnit, DummyPredictUnit, DummyTrainUnit, generate_random_dataloader
  from torchtnt.framework.callback import Callback
  from torchtnt.framework.callbacks.lambda_callback import Lambda
  from torchtnt.framework.evaluate import evaluate
  from torchtnt.framework.predict import predict
  from torchtnt.framework.state import State
  from torchtnt.framework.train import train
  from torchtnt.framework.unit import TrainUnit
label_desc: Use image node_id 1 for calling a global function with example usage: _get_members_in_different_name(cls, phase) and returns: unknown