docstr: Does not create CSV/JSON logger callbacks automatically
docstr_tok: ["Does","not","create","CSV\/JSON","logger","callbacks","automatically"]
code: def testCustomLoggerNoAutoLogging(self):
      """Does not create CSV/JSON logger callbacks automatically"""
      os.environ["TUNE_DISABLE_AUTO_CALLBACK_LOGGERS"] = "1"
  
      class CustomLogger(Logger):
          def on_result(self, result):
              with open(
                  os.path.join(self.logdir, "test.log"), "w"
              ) as f:
                  f.write("hi")
  
      [trial] = run_experiments(
          {"foo": {"run": "__fake", "stop": {"training_iteration": 1}}},
          callbacks=[
              LegacyLoggerCallback(logger_classes=[CustomLogger])
          ],
      )
      self.assertTrue(
          os.path.exists(os.path.join(trial.local_path, "test.log"))
      )
      self.assertFalse(
          os.path.exists(os.path.join(trial.local_path, "params.json"))
      )
  
      [trial] = run_experiments(
          {"foo": {"run": "__fake", "stop": {"training_iteration": 1}}}
      )
      self.assertFalse(
          os.path.exists(os.path.join(trial.local_path, "params.json"))
      )
  
      [trial] = run_experiments(
          {"foo": {"run": "__fake", "stop": {"training_iteration": 1}}},
          callbacks=[LegacyLoggerCallback(logger_classes=[])],
      )
      self.assertFalse(
          os.path.exists(os.path.join(trial.local_path, "params.json"))
      )
  
imports: import os
  import unittest
  import ray
  import ray.train
  from ray.train import CheckpointConfig
  from ray.rllib import _register_all
  from ray.tune.result import TIMESTEPS_TOTAL
  from ray.tune import Trainable, TuneError
  from ray.tune import register_trainable, run_experiments
  from ray.tune.logger import LegacyLoggerCallback, Logger
  from ray.tune.experiment import Experiment
  from ray.tune.experiment.trial import Trial, ExportFormat
label_desc: Use image node_id 11 for calling the RunExperimentTest obj's underlying member method code with example usage: obj.testCustomLoggerNoAutoLogging() without return types