```python
if bt.ObservationMetadata is None:
    stderr.write('Metadata not formatted in a dictionary, will not be returned.\n')
    return None
```