code: def documents_dir_is_valid(path):
      if not os.path.exists(path):
          return False
  
      file_list = os.listdir(path)
      if len(file_list) == 0:
          return False
  
      return True
  
imports: import argparse
  import logging
  import os
  import sys
  from collections import namedtuple
  import torch
  from torch.utils.data import DataLoader, SequentialSampler
  from tqdm import tqdm
  from modeling_bertabs import BertAbs, build_predictor
  from transformers import BertTokenizer
  from .utils_summarization import CNNDMDataset, build_mask, compute_token_type_ids, encode_for_summarization, truncate_or_pad
label_desc: Use image node_id 11 for calling a global function with example usage: documents_dir_is_valid(path) and returns: True, False, False