code: def get_or_run_proc_result(pid, item, parameters="{}", user=None):
      # Get or Create Processor
      processor = Processor.get_first(pid=pid)
  
      if not parameters:
          parameters = processor.get_parameters_default()
  
      # Get or Create Preset with Processor
      preset, c = Preset.get_first_or_create(
          processor=processor, parameters=parameters
      )
  
      return get_result(item, preset, user=user, wait=True)
  
file_path: TimeSide/timeside/server/utils.py
imports: import os
  import timeside.core
  import json
  from django.conf import settings
  from timeside.core.api import IEncoder
  from timeside.server.models import Processor, Preset, Result, Task
  from rest_framework.views import exception_handler
  from rest_framework.renderers import BaseRenderer, JSONRenderer
label_desc: Use image node_id 1 for calling a global function with example usage: get_or_run_proc_result(pid, item, parameters, user) and returns: get_result