code: def instance_path_for(name, identifier_type, identifier_key=None):
      
      return "/{}/<{}:{}>".format(
          name_for(name),
          identifier_type,
          identifier_key or "{}_id".format(name_for(name)),
      )
docs: Get a path for thing.