code: def bop(
      open_,
      high,
      low,
      close,
      scalar=None,
      talib=None,
      offset=None,
      **kwargs,
  ):
      """Indicator: Balance of Power (BOP)"""
      # Validate Arguments
      open_ = verify_series(open_)
      high = verify_series(high)
      low = verify_series(low)
      close = verify_series(close)
      scalar = float(scalar) if scalar else 1
      offset = get_offset(offset)
      mode_tal = bool(talib) if isinstance(talib, bool) else True
  
      # Calculate Result
      if Imports["talib"] and mode_tal:
          from talib import BOP
  
          bop = BOP(open_, high, low, close)
      else:
          high_low_range = non_zero_range(high, low)
          close_open_range = non_zero_range(close, open_)
          bop = scalar * close_open_range / high_low_range
  
      # Offset
      if offset != 0:
          bop = bop.shift(offset)
  
      # Handle fills
      if "fillna" in kwargs:
          bop.fillna(kwargs["fillna"], inplace=True)
      if "fill_method" in kwargs:
          bop.fillna(method=kwargs["fill_method"], inplace=True)
  
      # Name and Categorize it
      bop.name = f"BOP"
      bop.category = "momentum"
  
      return bop
  
label_desc: Use image node_id 1 for calling a global function with example usage: bop(open_, high, low, close, scalar, talib, offset) and returns: bop