class_docstr: Contains Metadata to connect to Oblivious Enclave
class_docstr_tok: ["Contains","Metadata","to","connect","to","Oblivious","Enclave"]
code: def check_valid_deployment_id(cls, deployment_id: str) -> str:
      if not deployment_id and not LOCAL_MODE:
          raise ValueError(
              f"Deployment ID should be a valid string: {deployment_id}"
              + "in cloud deployment of enclave"
              + "For testing set the LOCAL_MODE variable in constants.py"
          )
      return deployment_id
  
imports: from __future__ import annotations
  from datetime import datetime
  import os
  from signal import SIGTERM
  import subprocess
  import sys
  import time
  from typing import Any
  from typing import Callable
  from typing import Dict
  from typing import List
  from typing import Optional
  from typing import TYPE_CHECKING
  from oblv_ctl import OblvClient
  from pydantic import validator
  import requests
  from ...client.api import SyftAPI
  from ...client.client import SyftClient
  from ...client.client import login
  from ...client.client import login_as_guest
  from ...client.enclave_client import EnclaveMetadata
  from ...serde.serializable import serializable
  from ...types.uid import UID
  from ...util.util import bcolors
  from .constants import LOCAL_MODE
  from .exceptions import OblvEnclaveError
  from .exceptions import OblvUnAuthorizedError
  from .oblv_proxy import check_oblv_proxy_installation_status
label_desc: Use image node_id 1 for calling the OblvMetadata obj's underlying member method code with example usage: obj.check_valid_deployment_id(cls, deployment_id) and returns: deployment_id