from collections import namedtuple

Accelerometer = namedtuple('Accelerometer', ["timestamp", "x", "y", "z"])
Magnetometer = namedtuple('Magnetometer', ['timestamp', 'x', 'y', 'z'])
Gyroscope = namedtuple('Gyroscope', ['timestamp', 'x', 'y', 'z'])
Euler = namedtuple('Euler', ['timestamp', 'x', 'y', 'z'])

Quaternion = namedtuple('Quaternion', ['timestamp', 'w', 'x', 'y', 'z'])

Heading = namedtuple('Heading', ['timestamp', 'h'])

Status = namedtuple('Status', ['magnetometer_enabled',
                               'gyroscope_enabled',
                               'accelerometer_enabled',
                               'gyroscope_resolution',
                               'accelerometer_resolution',
                               'low_output_rate',
                               'heading_streaming',
                               'euler_streaming',
                               'magnetometer_streaming',
                               'quaternions_streaming',
                               'gyroscope_streaming',
                               'accelerometer_streaming'])

[(3, 'collections.namedtuple', 'namedtuple', (['"""Accelerometer"""', "['timestamp', 'x', 'y', 'z']"], {}), False, 'from collections import namedtuple\n'), (4, 'collections.namedtuple', 'namedtuple', (['"""Magnetometer"""', "['timestamp', 'x', 'y', 'z']"], {}), False, 'from collections import namedtuple\n'), (5, 'collections.namedtuple', 'namedtuple', (['"""Gyroscope"""', "['timestamp', 'x', 'y', 'z']"], {}), False, 'from collections import namedtuple\n'), (6, 'collections.namedtuple', 'namedtuple', (['"""Euler"""', "['timestamp', 'x', 'y', 'z']"], {}), False, 'from collections import namedtuple\n'), (8, 'collections.namedtuple', 'namedtuple', (['"""Quaternion"""', "['timestamp', 'w', 'x', 'y', 'z']"], {}), False, 'from collections import namedtuple\n'), (10, 'collections.namedtuple', 'namedtuple', (['"""Heading"""', "['timestamp', 'h']"], {}), False, 'from collections import namedtuple\n'), (12, 'collections.namedtuple', 'namedtuple', (['"""Status"""', "['magnetometer_enabled', 'gyroscope_enabled', 'accelerometer_enabled',\n    'gyroscope_resolution', 'accelerometer_resolution', 'low_output_rate',\n    'heading_streaming', 'euler_streaming', 'magnetometer_streaming',\n    'quaternions_streaming', 'gyroscope_streaming', 'accelerometer_streaming']"], {}), False, 'from collections import namedtuple\n')]