code: def inferObject(exp, objectId, objects, objectName):
    
  
    # Create sequence of random sensations for this object for one column. The
    # total number of sensations is equal to the number of points on the object.
    # No point should be visited more than once.
    objectSensations = {}
    objectSensations[0] = []
    obj = objects[objectId]
    objectCopy = [pair for pair in obj]
    random.shuffle(objectCopy)
    for pair in objectCopy:
      objectSensations[0].append(pair)
  
    inferConfig = {
      "numSteps": len(objectSensations[0]),
      "pairs": objectSensations,
      "includeRandomLocation": False,
    }
  
    inferenceSDRs = objects.provideObjectToInfer(inferConfig)
  
    exp.infer(inferenceSDRs, objectName=objectName)
docs: Run inference on the given object.
    objectName is the name of this object in the experiment.