code: def export_mflog_env_vars(
      flow_name=None,
      run_id=None,
      step_name=None,
      task_id=None,
      retry_count=None,
      datastore_type=None,
      datastore_root=None,
      stdout_path=None,
      stderr_path=None,
  ):
      pathspec = "/".join(
          (flow_name, str(run_id), step_name, str(task_id))
      )
      env_vars = {
          "PYTHONUNBUFFERED": "x",
          "MF_PATHSPEC": pathspec,
          "MF_DATASTORE": datastore_type,
          "MF_ATTEMPT": retry_count,
          "MFLOG_STDOUT": stdout_path,
          "MFLOG_STDERR": stderr_path,
      }
      if datastore_root is not None:
          env_vars["MF_DATASTORE_ROOT"] = datastore_root
  
      return "export " + " ".join(
          "%s=%s" % kv for kv in env_vars.items()
      )
  
file_path: metaflow/metaflow/mflog/__init__.py
imports: import math
  import time
  from .mflog import refine, set_should_persist
  from metaflow.util import to_unicode
  from metaflow.exception import MetaflowInternalError
label_desc: Use image node_id 3 for calling a global function with example usage: export_mflog_env_vars(flow_name, run_id, step_name, task_id, retry_count, datastore_type, datastore_root, stdout_path, stderr_path) and returns: unknown