def METHOD_NAME(self, pk, user, **kwargs):
    query = kwargs.get('query', {})
    object_type = query.get(OBJECT_TYPE_KEY, [None])
    if object_type:
        object_type = object_type[0]
    template_uuid = urllib.parse.unquote(pk)
    try:
        if DIRECTORY_FOR_BLOCK_TEMPLATES == object_type:
            return self(CustomBlockTemplate.load(template_uuid=template_uuid), user, **kwargs)
        elif DIRECTORY_FOR_PIPELINE_TEMPLATES == object_type:
            return self(
                CustomPipelineTemplate.load(template_uuid=template_uuid),
                user,
                **kwargs,
            )
    except Exception as err:
        print(f'[WARNING] CustomTemplateResource.member: {err}')
        raise ApiError(ApiError.RESOURCE_NOT_FOUND)