code: def trainObjects(objects, exp, numRepeatsPerObject, experimentIdOffset=0):
    
    # We want to traverse the features of each object randomly a few times before
    # moving on to the next object. Create the SDRs that we need for this.
    objectsToLearn = objects.provideObjectsToLearn()
    objectTraversals = {}
    for objectId in objectsToLearn:
      objectTraversals[objectId + experimentIdOffset] = objects.randomTraversal(
        objectsToLearn[objectId], numRepeatsPerObject)
  
    # Train the network on all the SDRs for all the objects
    exp.learnObjects(objectTraversals)
docs: Train the network on all the objects by randomly traversing points on
    each object.  We offset the id of each object to avoid confusion with
    any sequences that might have been learned.