docstr: A dictionary can satisfy the protocol
code: def test_protocol(self):
      """
      A dictionary can satisfy the protocol
      """
      f = {
          "type": "Feature",
          "id": "1",
          "geometry": {"type": "Point", "coordinates": [53.0, -4.0]},
          "properties": {"title": "Dict 1"},
      }
  
      json = geojson.dumps(f, sort_keys=True)
      self.assertEqual(
          json,
          '{"geometry":'
          ' {"coordinates": [53.0, -4.0],'
          ' "type": "Point"},'
          ' "id": "1",'
          ' "properties": {"title": "Dict 1"},'
          ' "type": "Feature"}',
      )
  
      o = geojson.loads(json)
      output = geojson.dumps(o, sort_keys=True)
      self.assertEqual(
          output,
          '{"geometry":'
          ' {"coordinates": [53.0, -4.0],'
          ' "type": "Point"},'
          ' "id": "1",'
          ' "properties": {"title": "Dict 1"},'
          ' "type": "Feature"}',
      )
  
file_path: geojson/tests/test_features.py
imports: from io import StringIO
  import unittest
  import geojson
label_desc: Use image node_id 1 for calling the FeaturesTest obj's underlying member method code with example usage: obj.test_protocol() without return types