code: def set_api_from_config_path(self):
          
          config = ConfigParser(allow_no_value=False)
          config.optionxform = str
          config.read(self.config_path, "utf-8")
          if config.has_option("defaults", "dynamic_loading"):
              dynamic_loading = config.get("defaults", "dynamic_loading")
          else:
              dynamic_loading = "infura"
          if dynamic_loading == "infura":
              self.set_api_rpc_infura()
          elif dynamic_loading == "localhost":
              self.set_api_rpc_localhost()
          else:
              self.set_api_rpc(dynamic_loading)
docs: Set the RPC mode based on a given config file.