class_docstr: Test trash_objects
class_docstr_tok: ["Test","trash_objects"]
code: def test_trash_model_version(self, environment):
      # WITH model
      model = initialize_container(
          ContainerType.MODEL, project=environment.project
      )
      model_id = model["sys/id"].fetch()
      # AND model's model versions
      model_version1_id = init_model_version(
          model=model_id, project=environment.project
      )["sys/id"].fetch()
      model_version2_id = init_model_version(
          model=model_id, project=environment.project
      )["sys/id"].fetch()
      self.wait_for_containers(
          [model_version1_id, model_version2_id],
          model.fetch_model_versions_table,
      )
  
      # WHEN model version is trashed
      trash_objects(environment.project, model_version1_id)
  
      # THEN expect this version to not be fetched anymore
      self.wait_for_containers(
          [model_version2_id], model.fetch_model_versions_table
      )
  
      # WHEN whole model is trashed
      trash_objects(environment.project, model_id)
  
      # THEN expect none of its versions to be fetched anymore
      self.wait_for_containers([], model.fetch_model_versions_table)
  
imports: import time
  from typing import Callable, Dict, List
  import backoff
  import pytest
  from neptune import Project, init_model_version
  from neptune.internal.container_type import ContainerType
  from neptune.management import ProjectVisibility, add_project_member, add_project_service_account, clear_trash, create_project, delete_project, get_project_list, get_project_member_list, get_project_service_account_list, get_workspace_member_list, get_workspace_service_account_list, invite_to_workspace, remove_project_member, remove_project_service_account, trash_objects
  from neptune.management.exceptions import ProjectPrivacyRestrictedException, UserAlreadyInvited, UserNotExistsOrWithoutAccess, WorkspaceOrUserNotFound
  from neptune.management.internal.utils import normalize_project_name
  from neptune.metadata_containers.metadata_containers_table import Table
  from tests.e2e.base import BaseE2ETest, fake
  from tests.e2e.utils import Environment, a_project_name, initialize_container
label_desc: Use image node_id 2 for calling the TestTrashObjects obj's underlying member method code with example usage: obj.test_trash_model_version(environment) without return types