For instance:
>>> ts = msprime.simulate(10)
>>> ts.tables.metadata = b'abc'
>>> ts.tables.metadata
b''
>>> ts.tables.metadata_schema
>>> basic_schema = tskit.MetadataSchema({'codec': 'json'})
>>> ts.tables.metadata_schema = basic_schema
>>> ts.tables.metadata_schema
These are immutable, so probably ought to throw an error. This caught @vsbuffalo just now.