title: How to make a dictionary nested in a nested dictionary an OrderedDict (Python)?
body: <p>I have the following dictionary and I require the nested dictionaries within the dictionary to be ordered.</p>
  <pre><code>meta = {'task': {'id': 'text',
          'name': 'text',
          'size': '',
          'mode': 'interpolation',
          'overlap': '5',
          'bugtracker': '', 
          'created': '',
          'updated': '',
          'start_frame': '',
          'stop_frame': '',
          'frame_filter': '',
          'labels': {'label': {'name': 'text',
              'color': 'text',
              'attributes': {'attributes': {'name': 'text',
                           'mutable': 'False',
                           'input_type': 'text',
                           'default_value': '',
                           'values': '',}}}}}}
  meta = collections.OrderedDict(meta)
  </code></pre>
  <p>I tried using a list as shown below using the answer from <a href="https://stackoverflow.com/questions/30412746/keep-input-order-in-nested-dictionaries">here</a>:</p>
  <pre><code>meta = {'task': [('id', 'text'),
          ('name', 'text'),
          ('size',''),
          ('mode', 'interpolation'),
          ('overlap', '5'),
          ('bugtracker', ''), 
          ('created', ''),
          ('updated', ''),
          ('start_frame', ''),
          ('stop_frame', ''),
          ('frame_filter', '')]}
  </code></pre>
  <p>But this does not work for dictionaries nested within a nested dictionary. How can I convert the entire dictionary to be an OrderedDict, even the innermost nested dictionaries?</p>
  <p>P.S. I have a feeling the answer from <a href="https://stackoverflow.com/questions/18809482/python-nesting-dictionary-ordereddict-from-collections">here</a> is what I need but I cannot seem to figure out what the variables <code>terminal</code> and <code>lhs</code> are here. If anyone can help with this, that would also be very helpful.</p>