code: def create_experiment(
      filename,
      args,
      experiment_name=None,
      project=None,
      artifacts=None,
      resources_needed=None,
      metric=None,
      max_duration=None,
      dependency_policy: DependencyPolicy = None,
      from_compl_service: bool = False,
  ):
      if artifacts is None:
          artifacts = {}
  
      key = (
          experiment_name
          if experiment_name
          else str(int(time.time())) + "_" + str(uuid.uuid4())
      )
  
      if dependency_policy is None:
          raise ValueError("dependency_policy argument must be set.")
  
      packages = dependency_policy.generate(resources_needed)
  
      return Experiment(
          key=key,
          filename=filename,
          args=args,
          pythonenv=packages,
          project=project,
          artifacts=artifacts,
          resources_needed=resources_needed,
          metric=metric,
          max_duration=max_duration,
          from_compl_service=from_compl_service,
      )
  
file_path: studio/studio/experiments/experiment.py
imports: import uuid
  import sys
  import time
  from studio.artifacts import artifacts_tracker
  from studio.artifacts.artifact import Artifact
  from studio.util.util import shquote
  from studio.dependencies_policies.dependencies_policy import DependencyPolicy
label_desc: Use image node_id 1 for calling a global function with example usage: create_experiment(filename, args, experiment_name, project, artifacts, resources_needed, metric, max_duration, dependency_policy, from_compl_service) and returns: Experiment