docs: def has_local_job_refs(io_hash):
      '''
      :param io_hash: input/output hash
      :type io_hash: dict
      :returns: boolean indicating whether any job-based object references are found in *io_hash*
      '''
      q = []
  
      for field in io_hash:
          if is_job_ref(io_hash[field]):
              if get_job_from_jbor(io_hash[field]).startswith('localjob'):
                  return True
          elif isinstance(io_hash[field], list) or isinstance(io_hash[field], dict):
              q.append(io_hash[field])
  
      while len(q) > 0:
          thing = q.pop()
          if isinstance(thing, list):
              for i in range(len(thing)):
                  if is_job_ref(thing[i]):
                      if get_job_from_jbor(thing[i]).startswith('localjob'):
                          return True
                  elif isinstance(thing[i], list) or isinstance(thing[i], dict):
                      q.append(thing[i])
          else:
              for field in thing:
                  if is_job_ref(thing[field]):
                      if get_job_from_jbor(thing[field]).startswith('localjob'):
                          return True
                  elif isinstance(thing[field], list) or isinstance(thing[field], dict):
                      q.append(thing[field])
  
      return False