class_docstr: Cache for TensorBoard test file writers.
docstr: Returns the FileWriter for the specified directory.
  
  Args:
    logdir: str, name of the directory.
  
  Returns:
    A `FileWriter`.
docstr_tok: ["Returns","the","FileWriter","for","the","specified","directory",".","Args",":","logdir",":","str",",","name","of","the","directory",".","Returns",":","A","`","FileWriter","`","."]
code: def get(logdir):
      """Returns the FileWriter for the specified directory.
  
      Args:
        logdir: str, name of the directory.
  
      Returns:
        A `FileWriter`.
      """
      with FileWriterCache._lock:
          if logdir not in FileWriterCache._cache:
              FileWriterCache._cache[logdir] = FileWriter(
                  logdir, graph=tf.compat.v1.get_default_graph()
              )
          return FileWriterCache._cache[logdir]
  
imports: import threading
  import tensorflow
  from tensorboard.compat.proto import event_pb2
  from tensorboard.compat.proto import graph_pb2
  from tensorboard.compat.proto import meta_graph_pb2
  from tensorboard.compat.proto import summary_pb2
  from tensorboard.util import tb_logging
label_desc: Use image node_id 1 for calling the FileWriterCache obj's underlying member method code with example usage: obj.get(logdir) and returns: FileWriterCache