class_docstr: Adds physics simulation on top of kb.Scene using PyBullet.
class_docstr_tok: ["Adds","physics","simulation","on","top","of","kb.Scene","using","PyBullet","."]
code: def _obj_idx_to_asset(self, idx):
      assets = [
          asset
          for asset in self.scene.assets
          if asset.linked_objects.get(self) == idx
      ]
      if len(assets) == 1:
          return assets[0]
      elif len(assets) == 0:
          return None
      else:
          raise RuntimeError(
              "Multiple assets linked to same pybullet object. That should never happen"
          )
  
imports: import functools
  import inspect
  import logging
  import pathlib
  import sys
  import tempfile
  from typing import Dict, List, Optional, Tuple, Union
  import tensorflow
  from singledispatchmethod import singledispatchmethod
  from kubric import core
  from kubric.redirect_io import RedirectStream
label_desc: Use image node_id 16 for calling the PyBullet obj's underlying member method code with example usage: obj._obj_idx_to_asset(idx) and returns: assets, None