code: def get_latest_price(self, by_type=None, by_code=None):
      url = f"{self.base_endpoint}/latest/"
      params = self.create_params_dict(by_type=by_type, by_code=by_code)
      return self.make_request(url, params=params)
  
file_path: mindsdb/mindsdb/integrations/handlers/oilpriceapi_handler/oilpriceapi.py
imports: import requests
label_desc: Use image node_id 6 for calling the OilPriceAPIClient obj's underlying member method code with example usage: obj.get_latest_price(by_type, by_code) and returns: self