docstr: test finding records with '$in','$nin' operators
docstr_tok: ["test","finding","records","with","'","$","in","'",",","'","$","nin","'","operators"]
code: def test_find_records_in(self):
      """test finding records with '$in','$nin' operators"""
      hist = self.db.get_history()
      even = hist[::2]
      odd = hist[1::2]
      recs = self.db.find_records({"msg_id": {"$in": even}})
      found = [r["msg_id"] for r in recs]
      assert set(even) == set(found)
      recs = self.db.find_records({"msg_id": {"$nin": even}})
      found = [r["msg_id"] for r in recs]
      assert set(odd) == set(found)
  
imports: import logging
  import os
  import tempfile
  import time
  from datetime import datetime, timedelta
  from unittest import TestCase
  import pytest
  from jupyter_client.session import Session
  from ipyparallel import util
  from ipyparallel.controller.dictdb import DictDB
  from ipyparallel.controller.hub import init_record
  from ipyparallel.controller.sqlitedb import SQLiteDB
  from ipyparallel.util import utc
label_desc: Use image node_id 11 for calling the TaskDBTest obj's underlying member method code with example usage: obj.test_find_records_in() without return types