code: def a_registered_project_member(username=None):
      if username is None:
          username = a_string()
  
      registered_member_info = MagicMock()
      registered_member_info.avatarSource = "default"
      registered_member_info.avatarUrl = ""
      registered_member_info.firstName = a_string()
      registered_member_info.lastName = a_string()
      registered_member_info.username = username
  
      project_member = MagicMock()
      project_member.invitationInfo = None
      project_member.registeredMemberInfo = registered_member_info
      project_member.role = "manager"
  
      return project_member
  
file_path: neptune-client/tests/unit/neptune/legacy/api_objects_factory.py
imports: from random import randint, uniform
  from mock import MagicMock
  from tests.unit.neptune.legacy.random_utils import a_string, a_timestamp, a_uuid_string
label_desc: Use image node_id 3 for calling a global function with example usage: a_registered_project_member(username) and returns: project_member