def METHOD_NAME(business: Business):
    """Return a firm passcode for a given business identifier."""
    pass_code = None
    end_date = datetime.utcnow().date()
    party_roles = PartyRole.get_party_roles(business.id, end_date)
    if len(party_roles) == 0:
        return pass_code
    party = party_roles[0].party
    if party.party_type == 'organization':
        pass_code = party.organization_name
    else:
        pass_code = party.last_name + ', ' + party.first_name
        if hasattr(party, 'middle_initial') and party.middle_initial:
            pass_code = pass_code + ' ' + party.middle_initial
    return pass_code