code: def parse_link_attributes(self, some_json):
          '''return a dict based on some_json (empty if json invalid)'''
          try:
              return json.loads(some_json)
          except ValueError:
              print('Invalid JSON argument: {0}'.format(some_json))
          return {f parse_link_attributes(self, some_json):
          '''return a dict based on some_json (empty if json invalid)'''
          try:
              return json.loads(some_json)
          except ValueError:
              print('Invalid JSON argument: {0}'.format(some_json))
          return {}
docs: return a dict based on some_json (empty if json invalid)