def METHOD_NAME(self, method, device):
    """Test circuits with object metadata."""
    backend = self.backend(method=method, device=device)
    metadata0 = {0: object}
    circuit0 = QuantumCircuit(1, name="circ0", metadata=metadata0.copy())
    metadata1 = {1: object}
    circuit1 = QuantumCircuit(1, name="circ1", metadata=metadata1.copy())
    metadata2 = {2: object}
    circuit2 = QuantumCircuit(1, name="circ2", metadata=metadata2.copy())
    result = backend.run([circuit0, circuit1, circuit2]).result()
    self.assertSuccess(result)
    self.assertEqual(len(result.results), 3)
    self.assertEqual(result.results[0].header.metadata, metadata0)
    self.assertEqual(result.results[1].header.metadata, metadata1)
    self.assertEqual(result.results[2].header.metadata, metadata2)
    self.assertEqual(circuit0.metadata, metadata0)
    self.assertEqual(circuit1.metadata, metadata1)
    self.assertEqual(circuit2.metadata, metadata2)