code: def apply(self, f):
      try:
          st = f(self.static)
          return StaticDynamicAxis(st, st)
      except TypeError:
          return StaticDynamicAxis(None, f(self.dynamic))
  
file_path: tensorpack/tensorpack/models/shape_utils.py
imports: import tensorflow
label_desc: Use image node_id 2 for calling the StaticDynamicAxis obj's underlying member method code with example usage: obj.apply(f) and returns: StaticDynamicAxis, StaticDynamicAxis