code: def _is_using_patsy(endog, exog):
      # we get this when a structured array is passed through a formula
      return is_design_matrix(endog) and (
          is_design_matrix(exog) or exog is None
      )
  
file_path: statsmodels/statsmodels/tools/data.py
imports: from statsmodels.compat.numpy import NP_LT_2
  import numpy
  import pandas
label_desc: Use image node_id 11 for calling a global function with example usage: _is_using_patsy(endog, exog) and returns: unknown