dwave.optimization.model.States.to_file# States.to_file()# Serialize the states to a new file-like object.