code: def simulate_with_length(length, df):
      from tsfresh import extract_features
  
      start = time.time()
      df = extract_features(
          df[:length], column_id="id", column_sort="time"
      )
      end = time.time()
  
      duration = end - start
  
      print("Some checks with length", length)
      print(100 * duration)
      print(len(df.columns), len(df))
      print(
          df[
              [
                  "a__abs_energy",
                  "b__absolute_sum_of_changes",
                  "f__time_reversal_asymmetry_statistic__lag_1",
              ]
          ].head()
      )
  
      return {"length": length, "duration": duration}
  
imports: import time
  from glob import glob
  from subprocess import check_output
  import pandas
label_desc: Use image node_id 1 for calling a global function with example usage: simulate_with_length(length, df) and returns: dict