code: def close_logger():
      """
      Close file-based outputs
  
      :return:
      """
      # pylint: disable=no-name-in-module
      # This is done so if the user had TF 1.12.1 or a new version the code
      # does not brake. First part of the try is renaming the TF 1.12.1 to
      # fit the TF 1.13.1>= naming scheme, while the second is just a normal
      # import for TF 1.13.1>=
      try:
          # pylint: disable=no-name-in-module
          from tensorflow.python.platform.tf_logging import (
              _get_logger as get_logger,
          )
      except ImportError:
          from tensorflow.python.platform.tf_logging import get_logger
  
      logger = get_logger()
      for handler in reversed(logger.handlers):
          try:
              handler.flush()
              handler.close()
              logger.removeHandler(handler)
          except (OSError, ValueError):
              pass
  
imports: from __future__ import absolute_import, print_function, unicode_literals
  import errno
  import importlib
  import logging
  import os
  import re
  import sys
  import warnings
  import nibabel
  import numpy
  import pandas
  import scipy.ndimage
  import tensorflow
  from tensorflow.core.framework import summary_pb2
  from niftynet.io.image_loader import load_image_obj
  from niftynet.utilities.niftynet_global_config import NiftyNetGlobalConfig
  from niftynet.utilities.util_import import require_module
label_desc: Use image node_id 29 for calling a global function with example usage: close_logger() without return types