def METHOD_NAME(self):
    """Test for getting the gate errors."""
    self.assertEqual(
        self.properties.gate_error(self.ref_gate, 1),
        self.properties._gates[self.ref_gate][(1,)]["gate_error"][0],
    )
    self.assertEqual(
        self.properties.gate_error(
            self.ref_gate,
            [
                2,
            ],
        ),
        self.properties._gates[self.ref_gate][(2,)]["gate_error"][0],
    )
    self.assertEqual(
        self.properties.gate_error("cx", [0, 1]),
        self.properties._gates["cx"][(0, 1)]["gate_error"][0],
    )
    with self.assertRaises(BackendPropertyError):
        self.properties.gate_error("cx", 0)