<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_attrs(self):
 """Get the global attributes from underlying data set."""

        return FrozenOrderedDict((a, getattr(self.ds, a)) for a in self.ds.ncattrs())