class_docstr: BaseInteractiveApp is a base class for creating/accessing apps hosted on SageMaker.
docstr: Validate user profile name format.
  
  Args:
      user_profile_name (str): Required. The user profile name to validate.
  
  Returns:
      bool: Whether the supplied user profile name is valid.
docstr_tok: ["Validate","user","profile","name","format",".","Args",":","user_profile_name","(","str",")",":","Required",".","The","user","profile","name","to","validate",".","Returns",":","bool",":","Whether","the","supplied","user","profile","name","is","valid","."]
code: def _validate_user_profile_name(self, user_profile_name: str):
      """Validate user profile name format.
  
      Args:
          user_profile_name (str): Required. The user profile name to validate.
  
      Returns:
          bool: Whether the supplied user profile name is valid.
      """
      user_profile_name_regex = "^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}"
      if user_profile_name is None or not re.fullmatch(
          user_profile_name_regex, user_profile_name
      ):
          return False
      return True
  
imports: from __future__ import absolute_import
  import abc
  import base64
  import json
  import logging
  import os
  import re
  import webbrowser
  from typing import Optional
  import boto3
  from sagemaker.session import Session, NOTEBOOK_METADATA_FILE
label_desc: Use image node_id 9 for calling the BaseInteractiveApp obj's underlying member method code with example usage: obj._validate_user_profile_name(user_profile_name) and returns: True, False