code: def validate_member_id_params_for_group_type(group_type, params, member_group_ids, member_entity_ids):
          
          if group_type == 'external':
              if member_entity_ids is not None:
                  logger.warning("InvalidRequest: member entities can't be set manually for external groupsl ignoring member_entity_ids argument.")
          else:
              params['member_entity_ids'] = member_entity_ids
  
          if group_type == 'external':
              if member_group_ids is not None:
                  logger.warning("InvalidRequest: member groups can't be set for external groups; ignoring member_group_ids argument.")
          else:
              params['member_group_ids'] = member_group_ids
  
          return params
docs: Determine whether member ID parameters can be sent with a group create / update request.
  
          These parameters are only allowed for the internal group type. If they're set for an external group type, Vault
          returns a "error" response.
  
          :param group_type: Type of the group, internal or external
          :type group_type: str | unicode
          :param params: Params dict to conditionally add the member entity/group ID's to.
          :type params: dict
          :param member_group_ids:  Group IDs to be assigned as group members.
          :type member_group_ids: str | unicode
          :param member_entity_ids: Entity IDs to be assigned as  group members.
          :type member_entity_ids: str | unicode
          :return: Params dict with conditionally added member entity/group ID's.
          :rtype: dict