code: def _log_seq_trial(
      is_random_start,
      random_starts,
      runs_count,
      x0,
      prev_trials,
      objective,
  ):
      """Logs whether trial is random or based on previous trials.
  
      is_random_start is the authoritative flag that indicates
      whether or not a random trial is used. The remaining args are used
      to infer the explanation.
  
      """
      if is_random_start:
          explanation = _random_start_explanation(
              random_starts, runs_count, x0, prev_trials, objective
          )
          log.info("Random start for optimization (%s)", explanation)
      else:
          log.info(
              "Found %i previous trial(s) for use in optimization",
              len(prev_trials),
          )
  
imports: import logging
  import os
  import typing
  import warnings
  from guild import _skopt
  from guild import batch_util
  from guild import flag_util
  from guild import op_util
  from guild import query
label_desc: Use image node_id 21 for calling a global function with example usage: _log_seq_trial(is_random_start, random_starts, runs_count, x0, prev_trials, objective) without return types