class_docstr: Test trash_objects
class_docstr_tok: ["Test","trash_objects"]
code: def test_trash_runs_and_models(self, project, environment):
      # WITH runs and models
      run1_id = initialize_container(
          ContainerType.RUN, project=environment.project
      )["sys/id"].fetch()
      run2_id = initialize_container(
          ContainerType.RUN, project=environment.project
      )["sys/id"].fetch()
      model1_id = initialize_container(
          ContainerType.MODEL, project=environment.project
      )["sys/id"].fetch()
      model2_id = initialize_container(
          ContainerType.MODEL, project=environment.project
      )["sys/id"].fetch()
      # wait for elastic index to refresh
      self.wait_for_containers(
          [run1_id, run2_id], project.fetch_runs_table
      )
      self.wait_for_containers(
          [model1_id, model2_id], project.fetch_models_table
      )
  
      # WHEN trash one run and one model
      trash_objects(environment.project, [run1_id, model1_id])
  
      # THEN trashed runs are not fetched
      self.wait_for_containers([run2_id], project.fetch_runs_table)
      # AND trashed models are not fetched
      self.wait_for_containers([model2_id], project.fetch_models_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 1 for calling the TestTrashObjects obj's underlying member method code with example usage: obj.test_trash_runs_and_models(project, environment) without return types