code: def get_membership_object(self, key):
      try:
          result = Membership.objects.get(key=key)
          return result
      except Membership.DoesNotExist:
          pass
  
      return None
  
file_path: modelchimp/modelchimp/views/consumers/project_status.py
imports: import json
  from django.core import serializers
  from channels.db import database_sync_to_async
  from channels.generic.websocket import AsyncWebsocketConsumer
  from modelchimp.models.membership import Membership
  from modelchimp.models.experiment import Experiment
label_desc: Use image node_id 1 for calling the ProjectStatusConsumer obj's underlying member method code with example usage: obj.get_membership_object(key) and returns: None, result