def METHOD_NAME(instrument: DummyInstrument) -> None:
    # Test the metadata
    test_gain = 3
    test_unit = 'V'
    instrument.scaler.gain = test_gain
    instrument.scaler.unit = test_unit
    # Check if relevant fields are present in the snapshot
    snap = instrument.scaler.snapshot()
    snap_keys = snap.keys()
    metadata_keys = snap['metadata'].keys()
    assert 'division' in snap_keys
    assert 'gain' in snap_keys
    assert 'role' in snap_keys
    assert 'unit' in snap_keys
    assert 'variable_multiplier' in metadata_keys
    assert 'wrapped_parameter' in metadata_keys
    assert 'wrapped_instrument' in metadata_keys
    # Check if the fields are correct
    assert snap['gain'] == test_gain
    assert snap['division'] == 1/test_gain
    assert snap['role'] == ScaledParameter.Role.GAIN
    assert snap['unit'] == test_unit
    assert snap['metadata']['variable_multiplier'] is False
    assert snap['metadata']['wrapped_parameter'] == instrument.target_parameter.name