docstr: Filter out batch runs unless otherwise configured.
  
  Batch runs are included if `include_batch` or `deleted` is specified in
  args. We include batch runs when listing deleted for consistency with
  'guild runs list'.
docstr_tok: ["Filter","out","batch","runs","unless","otherwise","configured",".","Batch","runs","are","included","if","`","include_batch","`","or","`","deleted","`","is","specified","in","args",".","We","include","batch","runs","when","listing","deleted","for","consistency","with","'guild","runs","list","'","."]
code: def _filter_batch_runs(self, runs):
      """Filter out batch runs unless otherwise configured.
  
      Batch runs are included if `include_batch` or `deleted` is specified in
      args. We include batch runs when listing deleted for consistency with
      'guild runs list'.
      """
      if self._args.include_batch or self._args.deleted:
          return runs
      return [run for run in runs if not batch_util.is_batch(run)]
  
imports: import logging
  import os
  import re
  import guild
  from guild import batch_util
  from guild import click_util
  from guild import config
  from guild import index
  from guild import run
  from guild import run_util
  from guild import util
  from guild import var
  from .None import compare_impl
  from .None import runs_impl
label_desc: Use image node_id 3 for calling the ViewDataImpl obj's underlying member method code with example usage: obj._filter_batch_runs(runs) and returns: unknown, runs