code: def extract_option_object(option):
      """Convert a click.option call into a click.Option object.
  
      Parameters
      ----------
      option : decorator
          A click.option decorator.
  
      Returns
      -------
      option_object : click.Option
          The option object that this decorator will create.
      """
  
      @option
      def opt():
          pass
  
      return opt.__click_params__[0]
  
imports: import errno
  import os
  import click
  import logbook
  import pandas
  from six import text_type
  import zipline
  from zipline.data import bundles
  from trading_calendars import get_calendar
  from zipline.utils.compat import wraps
  from zipline.utils.cli import Date, Timestamp
  from zipline.utils.run_algo import _run, BenchmarkSpec, load_extensions
  from zipline.extensions import create_args
label_desc: Use image node_id 2 for calling a global function with example usage: extract_option_object(option) and returns: opt