def fetch_organization(organization_id):
organization = {'<STR_LIT:id>': organization_id}<EOL>if not organization_id:<EOL><INDENT>exceptions.raise_exception("<STR_LIT>", organization, exceptions.InvalidOrganizationException)<EOL><DEDENT>organizations = serializers.serialize_organizations(<EOL>internal.Organization.objects.filter(id=organization_id, active=True)<EOL>)<EOL>if not organizations:<EOL><INDENT>exceptions.raise_exception("<STR_LIT>", organization, exceptions.InvalidOrganizationException)<EOL><DEDENT>return organizations[<NUM_LIT:0>]<EOL>
Retrieves a specific organization from app/local state
Returns a dictionary representation of the object