code: def _is_reg_line_needed(reg_line, geom_kind):
      if reg_line is not None:
          return reg_line
      if geom_kind == "point":
          return True
      else:
          return False
  
imports: from ..plot.core import PlotSpec, aes
  from ..plot.geom import geom_smooth
  from ..plot.label import xlab, ylab
  from ._plot2d_common import _get_bin_params_2d, _get_geom2d_layer, _get_marginal_layers
label_desc: Use image node_id 2 for calling a global function with example usage: _is_reg_line_needed(reg_line, geom_kind) and returns: reg_line, True, False