code: def __enter__(self) -> "ManagedCluster":
      self.old_cd = os.getcwd()
      os.chdir(str(conf.PROJECT_ROOT_PATH))
      self.dc.__enter__()
      return self
  
imports: import json
  import os
  import subprocess
  import time
  from typing import Any, Dict, Iterator, List, Union, cast
  import pytest
  from tests import config
  from .abstract_cluster import Cluster
  from .test_users import logged_in_user
  from .utils import now_ts, set_master_port
label_desc: Use image node_id 2 for calling the ManagedCluster obj's underlying member method code with example usage: obj.__enter__() and returns: self