code: def dict_to_numpy_dict(obj_dict):
      
      return {key: np.asarray(value) if value is not None else None for key, value in obj_dict.items()}
docs: Convert a dictionary of lists into a dictionary of numpy arrays