code: def log_internal(args, filetype):
      '''internal function to call get_log_content'''
      file_name = get_config_filename(args)
      if filetype == 'stdout':
          file_full_path = os.path.join(NNICTL_HOME_DIR, file_name, 'stdout')
      else:
          file_full_path = os.path.join(NNICTL_HOME_DIR, file_name, 'stderr')
      print(check_output_command(file_full_path, head=args.head, tail=args.tail)f log_internal(args, filetype):
      '''internal function to call get_log_content'''
      file_name = get_config_filename(args)
      if filetype == 'stdout':
          file_full_path = os.path.join(NNICTL_HOME_DIR, file_name, 'stdout')
      else:
          file_full_path = os.path.join(NNICTL_HOME_DIR, file_name, 'stderr')
      print(check_output_command(file_full_path, head=args.head, tail=args.tail))
docs: internal function to call get_log_content