code: def reset(name: str, deployment_type_enum: DeploymentType) -> None:
      if deployment_type_enum == DeploymentType.PYTHON:
          sy = get_syft_client()
          _ = sy.Worker.named(name=name, processes=1, reset=True)  # type: ignore
      elif (
          deployment_type_enum == DeploymentType.CONTAINER_STACK
          or deployment_type_enum == DeploymentType.SINGLE_CONTAINER
      ):
          Orchestra.shutdown(
              name=name,
              deployment_type_enum=deployment_type_enum,
              reset=True,
          )
      else:
          raise NotImplementedError(
              f"Reset not implemented for the deployment type:{deployment_type_enum}"
          )
  
imports: from __future__ import annotations
  from enum import Enum
  import getpass
  import inspect
  import os
  import subprocess
  from threading import Thread
  from typing import Any
  from typing import Callable
  from typing import Optional
  from typing import Union
  from .cli import str_to_bool
  from .grammar import find_available_port
  from .names import random_name
  from .util import shell
label_desc: Use image node_id 4 for calling the Orchestra obj's underlying member method code with example usage: obj.reset(name, deployment_type_enum) without return types