class_docstr: Environment class for credentialed VM environments.
  
  CredentialedVMEnvironment represents functionality to detect whether it is
  executed in a credentialed VM environment based on the with_credentials
  parameter. Additionally, it can display corresponding visualizations.
class_docstr_tok: ["Environment","class","for","credentialed","VM","environments",".","CredentialedVMEnvironment","represents","functionality","to","detect","whether","it","is","executed","in","a","credentialed","VM","environment","based","on","the","with_credentials","parameter",".","Additionally",",","it","can","display","corresponding","visualizations","."]
code: def select(self, service):
      origin = f"https://{service.ip}:{service.port}"
      headers = ["Content-Type"]
      service.cors = CORS(
          service.app,
          origins=[origin],
          expose_headers=headers,
          supports_credentials=True,
      )
      service.env_name = CREDENTIALED_VM
  
imports: from flask_cors import CORS
  from rai_core_flask.environments.base_environment import BaseEnvironment
label_desc: Use image node_id 2 for calling the CredentialedVMEnvironment obj's underlying member method code with example usage: obj.select(service) without return types