code: def insert(cls, jobs_data, queue=None, statuses_no_storage=None, return_jobs=True, w=None, j=None):
          
  
          now = datetime.datetime.utcnow()
          for data in jobs_data:
              if data["status"] == "started":
                  data["datestarted"] = now
  
          no_storage = (statuses_no_storage is not None) and ("started" in statuses_no_storage)
          if no_storage and return_jobs:
              for data in jobs_data:
                  data["_id"] = ObjectId()  # Give the job a temporary ID
          else:
              inserted = context.connections.mongodb_jobs.mrq_jobs.insert(
                  jobs_data,
                  manipulate=True,
                  w=w,
                  j=j
              )
  
          if return_jobs:
              jobs = []
              for data in jobs_data:
                  job = cls(data["_id"], queue=queue)
                  job.set_data(data)
                  job.statuses_no_storage = statuses_no_storage
                  job.stored = (not no_storage)
                  if data["status"] == "started":
                      job.datestarted = data["datestarted"]
                  jobs.append(job)
  
              return jobs
          else:
              return inserted
docs: Insert a job into MongoDB