code: def build(
      task: TaskOnKart,
      return_value: bool = True,
      reset_register: bool = True,
      log_level: int = logging.ERROR,
      **env_params,
  ) -> Optional[Any]:
      """
      Run gokart task for local interpreter.
      Sharing the most of its parameters with luigi.build (see https://luigi.readthedocs.io/en/stable/api/luigi.html?highlight=build#luigi.build)
      """
      if reset_register:
          _reset_register()
      with LoggerConfig(level=log_level):
          result = luigi.build(
              [task],
              local_scheduler=True,
              detailed_summary=True,
              log_level=logging.getLevelName(log_level),
              **env_params,
          )
          if result.status == luigi.LuigiStatusCode.FAILED:
              raise GokartBuildError(result.summary_text)
      return _get_output(task) if return_value else None
  
file_path: gokart/gokart/build.py
imports: import logging
  from logging import getLogger
  from typing import Any, Optional
  import luigi
  import gokart
  from gokart.task import TaskOnKart
label_desc: Use image node_id 3 for calling a global function with example usage: build(task, return_value, reset_register, log_level) and returns: unknown