def METHOD_NAME(self):
    """Validate studio domain id and user profile
    Get and validate studio domain id and user profile
    from NOTEBOOK_METADATA_FILE in studio environment.
    Set _valid_domain_and_user to True if validation succeeded.
    """
    if not os.path.isfile(NOTEBOOK_METADATA_FILE):
        return
    with open(NOTEBOOK_METADATA_FILE, "rb") as f:
        metadata = json.loads(f.read())
        self._domain_id = metadata.get("DomainId")
        self._user_profile_name = metadata.get("UserProfileName")
        if self._validate_domain_id() is True and self._validate_user_profile_name() is True:
            self._valid_domain_and_user = True
        else:
            logger.warning(
                "NOTEBOOK_METADATA_FILE detected but failed to get"
                "valid domain and user from it."
            )