code: def resolve_artifact_name(file_path):
      """Resolve artifact name from given file path.
  
      If not specified, will auto create one.
  
      Args:
          file_path (str): Path to the file.
  
      Returns:
          str: The resolved artifact name.
      """
      _, filename = os.path.split(file_path)
      if filename:
          return filename
  
      return _utils.name("artifact")
  
imports: from __future__ import absolute_import
  import logging
  import os
  import mimetypes
  import urllib
  from functools import wraps
  from typing import Optional
  from sagemaker import Session
  from sagemaker.apiutils import _utils
  from sagemaker.experiments._environment import _RunEnvironment, _EnvironmentType
  from sagemaker.experiments.trial_component import _TrialComponent
  from sagemaker.utilities.search_expression import Filter, Operator, SearchExpression
  from sagemaker.utils import retry_with_backoff
label_desc: Use image node_id 1 for calling a global function with example usage: resolve_artifact_name(file_path) and returns: _utils, filename