code: def master_primary_name(self) -> Optional[str]:
          
  
          master_primary_name = self.master_replica.primaryName
          if master_primary_name:
              return self.master_replica.getNodeName(master_primary_name)
          return None
docs: Return the name of the primary node of the master instance