parameters: (kwargs)
return_statement: return log_dir
docstring: create logs dir
      Args:
          kwargs (dict): The dictionary of log configurations.
      Returns:
          Log_dir: Create subdirectory.
          Examples:
          >>> /rank_0/logs
docstring_summary: create logs dir
      Args:
          kwargs (dict): The dictionary of log configurations.
      Returns:
          Log_dir: Create subdirectory.
          Examples:
          >>> /rank_0/logs
docstring_tokens: create logs dir Args : kwargs ( dict ) : The dictionary of log configurations . Returns : Log_dir : Create subdirectory . Examples : >>> / rank_0 / logs
function: def _create_logfile_dir(kwargs):
      """
      create logs dir
      Args:
          kwargs (dict): The dictionary of log configurations.
      Returns:
          Log_dir: Create subdirectory.
          Examples:
          >>> /rank_0/logs
      """
      log_dir = os.path.realpath(kwargs.get('filepath'))
      rank_id = _get_rank_id()
      log_dir += '/rank_' + rank_id + '/logs'
      if not os.path.exists(log_dir):
          os.makedirs(log_dir, exist_ok=True)
      return log_dir
function_tokens: def _create_logfile_dir ( kwargs ) : log_dir = os . path . realpath ( kwargs . get ( 'filepath' ) ) rank_id = _get_rank_id ( ) log_dir += '/rank_' + rank_id + '/logs' if not os . path . exists ( log_dir ) : os . makedirs ( log_dir , exist_ok = True ) return log_dir