code: def load_files_from_path(dir_path, extension="txt"):
      """load all files from given directory (with given extension)"""
      files = [
          os.path.join(dir_path, f)
          for f in os.listdir(dir_path)
          if os.path.isfile(os.path.join(dir_path, f))
          and f.endswith(extension)
      ]
      files_data = []
      for f in files:
          with open(f) as fp:
              files_data.append(
                  " ".join(map(str.strip, fp.readlines()))
              )
      return files_data
  
imports: import argparse
  import gzip
  import io
  import json
  import os
  import posixpath
  import re
  import sys
  import zipfile
  from os import PathLike, makedirs
  from pathlib import Path
  from urllib.parse import urlparse
  import requests
  from tqdm import tqdm
  from nlp_architect.utils.generic import license_prompt
label_desc: Use image node_id 20 for calling a global function with example usage: load_files_from_path(dir_path, extension) and returns: files_data