code: def create_params_dict(self, by_type, by_code):
      params = {}
      if by_type is not None:
          params["by_type"] = by_type
      if by_code is not None:
          params["by_code"] = by_code
      return params
  
file_path: mindsdb/mindsdb/integrations/handlers/oilpriceapi_handler/oilpriceapi.py
imports: import requests
label_desc: Use image node_id 5 for calling the OilPriceAPIClient obj's underlying member method code with example usage: obj.create_params_dict(by_type, by_code) and returns: params