code: def get_query_object_path(state_file_path, name, version):
      """
      Returns the query object path
  
      If the version is None, a path without the version will be returned.
      """
      root_path = _get_root_path(state_file_path)
      sub_path = [_QUERY_OBJECT_DIR, name]
      if version is not None:
          sub_path.append(str(version))
      full_path = root_path + "/".join(sub_path)
      return full_path
  
imports: import json
  import logging
  from tabpy.tabpy_server.management.util import write_state_config
  from threading import Lock
  from time import time
label_desc: Use image node_id 3 for calling a global function with example usage: get_query_object_path(state_file_path, name, version) and returns: full_path