code: def _inherit_option(self, name, val):
          
          if val:
              return val
          txn_opts = self.options.default_transaction_options
          val = txn_opts and getattr(txn_opts, name)
          if val:
              return val
          return getattr(self.client, name)
docs: Return the inherited TransactionOption value.