code: def get_user_project_details(self, key):
      try:
          result = Membership.objects.get(key=key)
          return result
      except Membership.DoesNotExist:
          pass
  
      return None
  
imports: import json
  from settings import settings
  from datetime import datetime
  from django.utils import timezone
  from django.contrib.auth.models import AnonymousUser
  from channels.db import database_sync_to_async
  from channels.auth import login
  from channels.generic.websocket import AsyncWebsocketConsumer
  from modelchimp.models.membership import Membership
  from modelchimp.models.experiment import Experiment
  from modelchimp.enum import ClientEvent, ExperimentStatus
label_desc: Use image node_id 1 for calling the TrackerConsumer obj's underlying member method code with example usage: obj.get_user_project_details(key) and returns: None, result