code: def test_from_model(self):
      checkpoint = TensorflowCheckpoint.from_model(
          self.model, preprocessor=DummyPreprocessor(1)
      )
      loaded_model = checkpoint.get_model()
      preprocessor = checkpoint.get_preprocessor()
  
      assert compare_weights(
          loaded_model.get_weights(), self.model.get_weights()
      )
      assert preprocessor.multiplier == 1
  
imports: import os.path
  import tempfile
  import unittest
  from typing import List
  import pytest
  import tensorflow
  from numpy import ndarray
  from ray import train
  from ray.data import Preprocessor
  from ray.train import ScalingConfig
  from ray.train.tensorflow import TensorflowCheckpoint, TensorflowTrainer
label_desc: Use image node_id 2 for calling the TestFromModel obj's underlying member method code with example usage: obj.test_from_model() without return types