code: def testWithParameters2(self):
      class Data:
          def __init__(self):
              import numpy as np
  
              self.data = np.random.rand((2 * 1024 * 1024))
  
      def train_fn(config, data=None):
          pass
  
      trainable = tune.with_parameters(train_fn, data=Data())
      # ray.cloudpickle will crash for some reason
      import cloudpickle as cp
  
      dumped = cp.dumps(trainable)
      assert sys.getsizeof(dumped) < 100 * 1024
  
imports: import json
  import os
  import sys
  import shutil
  import tempfile
  import unittest
  import ray
  from ray.air.constants import TRAINING_ITERATION
  from ray.rllib import _register_all
  import ray.train
  from ray import tune
  from ray.train import Checkpoint, CheckpointConfig
  from ray.tune.logger import NoopLogger
  from ray.tune.execution.placement_groups import PlacementGroupFactory
  from ray.tune.trainable import with_parameters, wrap_function
  from ray.tune.result import DEFAULT_METRIC
  from ray.tune.schedulers import ResourceChangingScheduler
  from ray.train.tests.util import mock_storage_context
label_desc: Use image node_id 5 for calling the FunctionApiTest obj's underlying member method code with example usage: obj.testWithParameters2() without return types