code: def __init__(self, server_addr=None):
      if not server_addr:
          server_addr = "default"
      self.server_addr = server_addr
      gl_root = os.path.abspath(
          os.path.join(
              os.path.dirname(os.path.realpath(__file__)), ".."
          )
      )
      self.log_rotation_interval = 86400
      self.log_rotation_truncate = 8
      if "TURI_UNITY" in os.environ:
          self.server_bin = os.environ["TURI_UNITY"]
      elif os.path.exists(os.path.join(gl_root, "unity_server")):
          self.server_bin = os.path.join(gl_root, "unity_server")
      elif os.path.exists(os.path.join(gl_root, "unity_server.exe")):
          self.server_bin = os.path.join(gl_root, "unity_server.exe")
  
      if "TURI_LOG_ROTATION_INTERVAL" in os.environ:
          tmp = os.environ["TURI_LOG_ROTATION_INTERVAL"]
          try:
              self.log_rotation_interval = int(tmp)
          except:
              logging.getLogger(__name__).warning(
                  "TURI_LOG_ROTATION_INTERVAL must be an integral value"
              )
  
      if "TURI_LOG_ROTATION_TRUNCATE" in os.environ:
          tmp = os.environ["TURI_LOG_ROTATION_TRUNCATE"]
          try:
              self.log_rotation_truncate = int(tmp)
          except:
              logging.getLogger(__name__).warning(
                  "TURI_LOG_ROTATION_TRUNCATE must be an integral value"
              )
  
      if "TURI_LOG_PATH" in os.environ:
          log_dir = os.environ["TURI_LOG_PATH"]
      else:
          if platform.system() == "Windows":
              if "TEMP" in os.environ:
                  log_dir = os.environ["TEMP"]
              else:
                  raise RuntimeError(
                      "Please set the TEMP environment variable"
                  )
          else:
              log_dir = "/tmp"
  
      self.log_dir = log_dir
  
file_path: turicreate/src/python/turicreate/util/_config.py
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import os
  import time
  import logging
  import platform
label_desc: Use image node_id 1 to create a new TuriConfig object  with example: obj = TuriConfig(server_addr)