code: def get_experiment_id():
      """Get an experiment ID for the current context. The experiment ID is fetched by querying
      providers, in the order that they were registered.
  
      This function iterates through all default experiment context providers in the registry.
  
      :return: An experiment_id.
      """
  
      experiment_id = DEFAULT_EXPERIMENT_ID
      for provider in _default_experiment_provider_registry:
          try:
              if provider.in_context():
                  experiment_id = provider.get_experiment_id()
                  break
          except Exception as e:
              _logger.warning(
                  "Encountered unexpected error while getting experiment_id: %s",
                  e,
              )
  
      return experiment_id
  
file_path: mlflow/mlflow/tracking/default_experiment/registry.py
imports: import logging
  import warnings
  import entrypoints
  from mlflow.tracking.default_experiment import DEFAULT_EXPERIMENT_ID
  from mlflow.tracking.default_experiment.databricks_notebook_experiment_provider import DatabricksNotebookExperimentProvider
label_desc: Use image node_id 1 for calling a global function with example usage: get_experiment_id() and returns: experiment_id