class_docstr: Skill that takes a function usable by pandasai
docstr: Creates a skill object from a function
  
  Args:
      func: The function from which to create a skill
  
  Returns:
      the `Skill` object
docstr_tok: ["Creates","a","skill","object","from","a","function","Args",":","func",":","The","function","from","which","to","create","a","skill","Returns",":","the","`","Skill","`","object"]
code: def from_function(cls, func: Callable, **kwargs: Any) -> "Skill":
      """
      Creates a skill object from a function
  
      Args:
          func: The function from which to create a skill
  
      Returns:
          the `Skill` object
  
      """
      return cls(func=func, **kwargs)
  
file_path: pandas-ai/pandasai/skills/__init__.py
imports: from pydantic import BaseModel, PrivateAttr
  from typing import Callable, Any, Optional, Union
  import inspect
label_desc: Use image node_id 3 for calling the Skill obj's underlying member method code with example usage: obj.from_function(cls, func) and returns: cls