code: def _remove_old(values, steps, last_steps):
      break_time = datetime.fromtimestamp(steps[-1]) - timedelta(days=1)
  
      left = 0
      right = len(steps) - 1
      while left < right:
          m = (left + right) // 2
          if datetime.fromtimestamp(steps[m]) < break_time:
              left = m + 1
          else:
              right = m
  
      if datetime.fromtimestamp(steps[left]) < break_time:
          return values, steps
  
      # find index to break
      break_index = left
  
      return (
          values[break_index:],
          steps[break_index:],
          last_steps[break_index:],
      )
  
imports: import math
  from typing import Dict, List, Optional, Union
  from datetime import datetime, timedelta
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: _remove_old(values, steps, last_steps) and returns: values,  steps,  last_steps, values,  steps