class_docstr: A click parameter that can be either a boolean or a string.
code: def convert(self, value, param, ctx):
      if isinstance(value, bool):
          return value
      else:
          return bool_cast(value)
  
file_path: ray/python/ray/dashboard/modules/job/cli_utils.py
imports: from typing import Union
  import click
  import functools
label_desc: Use image node_id 1 for calling the BoolOrStringParam obj's underlying member method code with example usage: obj.convert(value, param, ctx) and returns: value, bool_cast