parameters: (logdir)
docstring: Returns the SummaryWriter for the specified directory.
  
      Args:
        logdir: str, name of the directory.
  
      Returns:
        A `SummaryWriter`.
docstring_summary: Returns the SummaryWriter for the specified directory.
docstring_tokens: Returns the SummaryWriter for the specified directory .
function: def get(logdir):
      """Returns the SummaryWriter for the specified directory.
  
      Args:
        logdir: str, name of the directory.
  
      Returns:
        A `SummaryWriter`.
      """
      with SummaryWriterCache._lock:
        if logdir not in SummaryWriterCache._cache:
          SummaryWriterCache._cache[logdir] = SummaryWriter(
              logdir, graph=ops.get_default_graph())
        return SummaryWriterCache._cache[logdir]
function_tokens: def get ( logdir ) : with SummaryWriterCache . _lock : if logdir not in SummaryWriterCache . _cache : SummaryWriterCache . _cache [ logdir ] = SummaryWriter ( logdir , graph = ops . get_default_graph ( ) ) return SummaryWriterCache . _cache [ logdir ]