code: def scan_and_plot(directory):
      # Scan for .txt files in the given directory
      txt_files = glob.glob(os.path.join(directory, "*.txt"))
  
      # Process each file
      for file in txt_files:
          print(f"Processing {file}...")
          plot_data_from_file(file)
          print(f"Plot saved for {file}")
  
imports: import os
  import glob
  import pandas
  import matplotlib.pyplot
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: scan_and_plot(directory) without return types