class_docstr: Class for handling Feature Group Lineage
docstr: Parse the name from a string, if it's an ARN. Otherwise, return the string.
  
  Arguments:
      fg_uri (str): The Feature Group Name or ARN.
  
  Returns:
      str: The Feature Group Name.
docstr_tok: ["Parse","the","name","from","a","string",",","if","it","'s","an","ARN",".","Otherwise",",","return","the","string",".","Arguments",":","fg_uri","(","str",")",":","The","Feature","Group","Name","or","ARN",".","Returns",":","str",":","The","Feature","Group","Name","."]
code: def parse_name_from_arn(fg_uri: str) -> str:
      """Parse the name from a string, if it's an ARN. Otherwise, return the string.
  
      Arguments:
          fg_uri (str): The Feature Group Name or ARN.
  
      Returns:
          str: The Feature Group Name.
      """
      match = re.match(FEATURE_GROUP_ARN_REGEX_PATTERN, fg_uri)
      if match:
          feature_group_name = match.group(4)
          return feature_group_name
      return fg_uri
  
file_path: sagemaker-python-sdk/src/sagemaker/feature_store/feature_processor/lineage/_feature_group_lineage_entity_handler.py
imports: from __future__ import absolute_import
  import re
  from typing import Dict, Any
  import logging
  from sagemaker import Session
  from sagemaker.feature_store.feature_processor._constants import FEATURE_GROUP_ARN_REGEX_PATTERN
  from sagemaker.feature_store.feature_processor.lineage._feature_group_contexts import FeatureGroupContexts
  from sagemaker.feature_store.feature_processor.lineage.constants import SAGEMAKER, FEATURE_GROUP, CREATION_TIME
  from sagemaker.lineage.context import Context
  from sagemaker.feature_store.feature_processor.lineage._feature_processor_lineage_name_helper import _get_feature_group_pipeline_lineage_context_name, _get_feature_group_pipeline_version_lineage_context_name
label_desc: Use image node_id 5 for calling the FeatureGroupLineageEntityHandler obj's underlying member method code with example usage: obj.parse_name_from_arn(fg_uri) and returns: fg_uri, feature_group_name