def METHOD_NAME(self):
    samples = {'a': -1, 'b': 1}
    bqm = dimod.BQM.from_qubo({'ab': 1})
    init = Initialized().parse_initial_states(
        bqm=bqm, initial_states=samples, num_reads=10)
    self.assertIs(init.initial_states.vartype, dimod.BINARY)
    arr = init.initial_states.record.sample
    self.assertTrue(((arr == 1) ^ (arr == 0)).all())
    samples = {'a': 0, 'b': 1}
    bqm = dimod.BQM.from_ising({}, {'ab': 1})
    init = Initialized().parse_initial_states(
        bqm=bqm, initial_states=samples, num_reads=10)
    self.assertIs(init.initial_states.vartype, dimod.SPIN)
    arr = init.initial_states.record.sample
    self.assertTrue(((arr == 1) ^ (arr == -1)).all())