code: def searching_all_files(cls, directory: Path):
      file_list = []  # A list for storing files existing in directories
  
      for x in directory.iterdir():
          if x.is_file():
              file_list.append(str(x))
          else:
              file_list.append(cls.searching_all_files(x))
  
      return file_list
  
imports: import os
  import io
  import json
  import pickle
  import sys
  import signal
  import traceback
  import re
  import flask
  import pandas
  import torch
  from collections import OrderedDict
  from fast_bert.prediction import BertClassificationPredictor
  from fast_bert.utils.spellcheck import BingSpellCheck
  from pathlib import Path
  import warnings
label_desc: Use image node_id 4 for calling the ScoringService obj's underlying member method code with example usage: obj.searching_all_files(cls, directory) and returns: file_list