def METHOD_NAME():
    class SomeRandomClass:
        def __init__(self, some_str):
            self.some_str = some_str
        def __str__(self):
            return self.some_str  # pragma: no cover
    mkey = cirq.MeasurementKey('key')
    assert mkey == 'key'
    assert hash(mkey) == hash('key')
    nested_key = cirq.MeasurementKey.parse_serialized('nested:key')
    assert nested_key == 'nested:key'
    non_str_or_measurement_key = SomeRandomClass('key')
    assert mkey != non_str_or_measurement_key