code: def check_privileged(privileged, protected, verbose):
      if not isinstance(privileged, str):
          try:
              privileged = str(privileged)
          except:
              ParameterCheckError(
                  "Could not convert privileged to String"
              )
  
      if privileged not in protected:
          raise ParameterCheckError(
              "privileged parameter must be in protected vector"
          )
  
      return privileged
  
file_path: DALEX/python/dalex/dalex/fairness/_basics/checks.py
imports: import numpy
  import pandas
  from .exceptions import *
  from ..._explainer import helper
label_desc: Use image node_id 6 for calling a global function with example usage: check_privileged(privileged, protected, verbose) and returns: privileged