code: def timed_read(filepath, dftype):
      basename, extension = os.path.splitext(filepath)
      extension = extension[1:]
      filetype = extension.split(".")[-1]
      code = read[extension].get(dftype, None)
  
      if code is None:
          return (None, -1)
  
      p.columns = [p.x] + [p.y] + p.categories
  
      duration, df = code(filepath, p, filetype)
  
      return df, duration
  
imports: from __future__ import annotations
  import time
  import os, os.path, sys, glob, argparse, resource, multiprocessing
  import pandas
  import dask.dataframe
  import numpy
  import datashader
  import feather
  import fastparquet
  from datashader.utils import export_image
  from datashader import transfer_functions
  from dask import distributed
label_desc: Use image node_id 8 for calling a global function with example usage: timed_read(filepath, dftype) and returns: df,  duration, None,  unknown