code: def pctl(q):
      return lambda x: np.percentile(x, 100 * q)
  
file_path: statsmodels/statsmodels/sandbox/tests/test_predict_functional.py
imports: from statsmodels.sandbox.predict_functional import predict_functional
  import numpy
  import pandas
  import pytest
  import statsmodels.api
label_desc: Use image node_id 1 for calling a global function with example usage: pctl(q) and returns: function