docstr: The instantaneous cost (in USD per hour) generated by this instance (WITH CAVEATS).
  
  The instantaneous cost of this instance, ignoring attached disks.
docstr_tok: ["The","instantaneous","cost","(","in","USD","per","hour",")","generated","by","this","instance","(","WITH","CAVEATS",")",".","The","instantaneous","cost","of","this","instance",",","ignoring","attached","disks","."]
code: def cost_per_hour(self, resource_rates: Dict[str, float]) -> float:
      """The instantaneous cost (in USD per hour) generated by this instance (WITH CAVEATS).
  
      The instantaneous cost of this instance, ignoring attached disks.
  
      """
      return self.instance_config.actual_cost_per_hour(resource_rates)
  
imports: import base64
  import json
  import logging
  import secrets
  from typing import Dict, Optional
  import aiohttp
  from gear import Database, transaction
  from hailtop import httpx
  from hailtop.humanizex import naturaldelta_msec
  from hailtop.utils import retry_transient_errors, time_msecs, time_msecs_str
  from ..cloud.utils import instance_config_from_config_dict
  from ..globals import INSTANCE_VERSION
  from ..instance_config import InstanceConfig
label_desc: Use image node_id 8 for calling the Instance obj's underlying member method code with example usage: obj.cost_per_hour(resource_rates) and returns: self