code: def filter_dict(d, keys):
      """Returns a dictionary which contains only the keys in the list `keys`."""
      return {k: v for k, v in d.items() if k in keys}
  
file_path: traintool/traintool/utils.py
imports: from datetime import datetime
label_desc: Use image node_id 1 for calling a global function with example usage: filter_dict(d, keys) and returns: unknown