parameters: (self, host_tuple=None)
return_statement: return ContextGenerator(
              {
                  "os": host_type.ostype,
                  "distro": host_type.distro,
                  "distro_vers": host_type.distrovers,
                  "fb": "on" if self.facebook_internal else "off",
                  "fbsource": "on" if self.fbsource_dir else "off",
                  "test": "off",
                  "shared_libs": "on" if self.shared_libs else "off",
              }
          )
docstring: Create a manifest ContextGenerator for the specified target platform.
docstring_summary: Create a manifest ContextGenerator for the specified target platform.
docstring_tokens: Create a manifest ContextGenerator for the specified target platform .
function: def get_context_generator(self, host_tuple=None):
          """Create a manifest ContextGenerator for the specified target platform."""
          if host_tuple is None:
              host_type = self.host_type
          elif isinstance(host_tuple, HostType):
              host_type = host_tuple
          else:
              host_type = HostType.from_tuple_string(host_tuple)
  
          return ContextGenerator(
              {
                  "os": host_type.ostype,
                  "distro": host_type.distro,
                  "distro_vers": host_type.distrovers,
                  "fb": "on" if self.facebook_internal else "off",
                  "fbsource": "on" if self.fbsource_dir else "off",
                  "test": "off",
                  "shared_libs": "on" if self.shared_libs else "off",
              }
          )
function_tokens: def get_context_generator ( self , host_tuple = None ) : if host_tuple is None : host_type = self . host_type elif isinstance ( host_tuple , HostType ) : host_type = host_tuple else : host_type = HostType . from_tuple_string ( host_tuple ) return ContextGenerator ( { "os" : host_type . ostype , "distro" : host_type . distro , "distro_vers" : host_type . distrovers , "fb" : "on" if self . facebook_internal else "off" , "fbsource" : "on" if self . fbsource_dir else "off" , "test" : "off" , "shared_libs" : "on" if self . shared_libs else "off" , } )